mirror of https://github.com/encounter/SDL.git
Fixed NullPointerException if there's no singleton
This commit is contained in:
parent
f6a537cbfa
commit
c179d3948a
|
@ -520,7 +520,9 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
|
||||||
/* The native thread has finished */
|
/* The native thread has finished */
|
||||||
public static void handleNativeExit() {
|
public static void handleNativeExit() {
|
||||||
SDLActivity.mSDLThread = null;
|
SDLActivity.mSDLThread = null;
|
||||||
mSingleton.finish();
|
if (mSingleton != null) {
|
||||||
|
mSingleton.finish();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue