mirror of
https://github.com/yawut/SDL.git
synced 2026-07-18 17:01:19 -05:00
Fixed NullPointerException if there's no singleton
This commit is contained in:
parent
c37adc91b5
commit
70b54e55ba
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user