Fixed NullPointerException if there's no singleton

Sam Lantinga 2018-09-17 12:08:05 -07:00
parent f6a537cbfa
commit c179d3948a
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}
}