Skip to content

Commit

Permalink
Fixed NullPointerException if there's no singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 17, 2018
1 parent f6a537c commit c179d39
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -520,7 +520,9 @@ public static void handleNativeState() {
/* The native thread has finished */
public static void handleNativeExit() {
SDLActivity.mSDLThread = null;
mSingleton.finish();
if (mSingleton != null) {
mSingleton.finish();
}
}


Expand Down

0 comments on commit c179d39

Please sign in to comment.