src/core/android/SDL_android.c
changeset 12564 04ec6bb43c4e
parent 12563 db549862a09a
child 12625 e58468e48179
     1.1 --- a/src/core/android/SDL_android.c	Sun Jan 20 22:11:56 2019 +0100
     1.2 +++ b/src/core/android/SDL_android.c	Sun Jan 20 22:17:41 2019 +0100
     1.3 @@ -331,13 +331,13 @@
     1.4      /* Get JNIEnv from the Thread local storage */
     1.5      JNIEnv *env = pthread_getspecific(mThreadKey);
     1.6      if (env == NULL) {
     1.7 -        /* If it fails, try to attach ! (e.g the thread isn't * created with SDL_CreateThread() */
     1.8 +        /* If it fails, try to attach ! (e.g the thread isn't created with SDL_CreateThread() */
     1.9          int status;
    1.10  
    1.11          /* There should be a JVM */
    1.12          if (mJavaVM == NULL) {
    1.13              __android_log_print(ANDROID_LOG_ERROR, "SDL", "Failed, there is no JavaVM");
    1.14 -            return 0;
    1.15 +            return NULL;
    1.16          }
    1.17  
    1.18          /* Attach the current thread to the JVM and get a JNIEnv.