Skip to content

Commit

Permalink
Don't crash on exit from SDLActivity if we don't have a singleton for…
Browse files Browse the repository at this point in the history
… some reason. (Thanks Rachel!)
  • Loading branch information
slouken committed Jun 8, 2018
1 parent fe196db commit 63317df
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -427,7 +427,10 @@ public static void handleNativeState() {
/* The native thread has finished */
public static void handleNativeExit() {
SDLActivity.mSDLThread = null;
mSingleton.finish();

// Make sure we currently have a singleton before we try to call it.
if (mSingleton != null)
mSingleton.finish();
}


Expand Down

0 comments on commit 63317df

Please sign in to comment.