Fixed NullPointerException if there's no singleton
authorSam Lantinga <slouken@libsdl.org>
Mon, 17 Sep 2018 12:08:05 -0700
changeset 1219456d508cebb46
parent 12193 a4c9aef03fe8
child 12195 367b9a5e9622
Fixed NullPointerException if there's no singleton
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	Mon Sep 17 11:35:24 2018 -0700
     1.2 +++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Mon Sep 17 12:08:05 2018 -0700
     1.3 @@ -520,7 +520,9 @@
     1.4      /* The native thread has finished */
     1.5      public static void handleNativeExit() {
     1.6          SDLActivity.mSDLThread = null;
     1.7 -        mSingleton.finish();
     1.8 +        if (mSingleton != null) {
     1.9 +            mSingleton.finish();
    1.10 +        }
    1.11      }
    1.12  
    1.13