Crash on Exit Dialog with latest nightly

As of a couple of days ago (after the AndroidHarness and OGLESContext changes were put in), I’m crashing the activity when the default exit dialog is used. It’s because the onClick of the dialog is using app = null and the onPause is missing a check for null on app (onResume is also, but not sure that is causing any issues.



[java]

This patch file was generated by NetBeans IDE

Following Index: paths are relative to: D:UserspotterecDocumentsjMonkeyProjectsjME3srcandroidcomjme3app

This patch can be applied using context Tools: Patch action on respective folder.

It uses platform neutral UTF-8 encoding and n newlines.

Above lines and this line are ignored by the patching process.

Index: AndroidHarness.java

— AndroidHarness.java Base (BASE)

+++ AndroidHarness.java Locally Modified (Based On LOCAL)

@@ -231,6 +231,7 @@

}



//resume the audio

  •    if (app != null) {<br />
    

AudioRenderer result = app.getAudioRenderer();

if (result != null) {

if (result instanceof AndroidAudioRenderer) {

@@ -238,6 +239,7 @@

renderer.resumeAll();

}

}

  •    }<br />
    

isGLThreadPaused = false;
logger.info("onResume");
@@ -251,6 +253,7 @@
}

//pause the audio
+ if (app != null) {
AudioRenderer result = app.getAudioRenderer();
if (result != null) {
logger.log(Level.INFO, "pause: {0}", result.getClass().getSimpleName());
@@ -259,6 +262,7 @@
renderer.pauseAll();
}
}
+ }

isGLThreadPaused = true;
logger.info("onPause");

[/java]

thanks committed !