1
0
mirror of https://github.com/Relintai/sdl2_frt.git synced 2025-04-16 21:46:03 +02:00

Fixed NullPointerException

This commit is contained in:
Sam Lantinga 2020-02-07 20:20:37 -08:00
parent e5e5416975
commit 64c58b9f19

View File

@ -1625,7 +1625,7 @@ class SDLMain implements Runnable {
Log.v("SDL", "Finished main function");
if (SDLActivity.mSingleton.isFinishing()) {
if (SDLActivity.mSingleton == null || SDLActivity.mSingleton.isFinishing()) {
// Activity is already being destroyed
} else {
// Let's finish the Activity