Fixed NullPointerException if there's no singleton

This commit is contained in:
Sam Lantinga committed 2018-09-17 12:08:05 -07:00
1 parent f6a537cbfa
commit c179d3948a
1 file changed
+3 -1
@@ -520,7 +520,9 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
/* The native thread has finished */
public static void handleNativeExit() {
SDLActivity.mSDLThread = null;
mSingleton.finish();
if (mSingleton != null) {
mSingleton.finish();
}
}