examples/mnit_ballz: fix call on nullable receiver warnings
[nit.git] / examples / mnit_ballz / src / ballz_android.nit
index 0f46bfc..ee41e9c 100644 (file)
@@ -46,6 +46,7 @@ redef class App
        redef fun on_create
        do
                super
+               var display = self.display.as(not null)
                game = new Game(display.width.to_f, display.height.to_f)
        end