Don't crash on exit from SDLActivity if we don't have a singleton for some reason. (Thanks Rachel!)
This commit is contained in:
parent
5365d120f5
commit
e11ad4a284
1 changed files with 4 additions and 1 deletions
|
@ -427,7 +427,10 @@ public class SDLActivity extends Activity {
|
|||
/* 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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue