mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 13:15:10 +00:00
Fixed NullPointerException if there's no singleton
This commit is contained in:
@@ -520,7 +520,9 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
|
|||||||
/* The native thread has finished */
|
/* The native thread has finished */
|
||||||
public static void handleNativeExit() {
|
public static void handleNativeExit() {
|
||||||
SDLActivity.mSDLThread = null;
|
SDLActivity.mSDLThread = null;
|
||||||
mSingleton.finish();
|
if (mSingleton != null) {
|
||||||
|
mSingleton.finish();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user