Fixed NullPointerException
authorSam Lantinga <slouken@libsdl.org>
Fri, 07 Feb 2020 20:20:37 -0800
changeset 134954ee6c5c898c8
parent 13494 29809f6f0271
child 13496 045f218436fe
Fixed NullPointerException
android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
     1.1 --- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Fri Feb 07 20:19:32 2020 -0800
     1.2 +++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Fri Feb 07 20:20:37 2020 -0800
     1.3 @@ -1625,7 +1625,7 @@
     1.4  
     1.5          Log.v("SDL", "Finished main function");
     1.6  
     1.7 -        if (SDLActivity.mSingleton.isFinishing()) {
     1.8 +        if (SDLActivity.mSingleton == null || SDLActivity.mSingleton.isFinishing()) {
     1.9              // Activity is already being destroyed
    1.10          } else {
    1.11              // Let's finish the Activity