ecere/Android: Fixed seg fault on leaving app in previous fix
authorJerome St-Louis <jerome@ecere.com>
Wed, 27 Feb 2013 12:27:51 +0000 (07:27 -0500)
committerJerome St-Louis <jerome@ecere.com>
Wed, 27 Feb 2013 12:27:51 +0000 (07:27 -0500)
ecere/src/gui/drivers/AndroidInterface.ec

index 1f7d07e..9b8c943 100644 (file)
@@ -594,7 +594,7 @@ class AndroidInterface : Interface
             }
          }
          */
-         if(gotInit)
+         if(gotInit && androidActivity.window)
          {
             int w = ANativeWindow_getWidth(androidActivity.window);
             int h = ANativeWindow_getHeight(androidActivity.window);