src/core/android/SDL_android.c
changeset 9873 b0f121cfa074
parent 9870 6dd5ab47534b
child 9880 3bbeb623181c
     1.1 --- a/src/core/android/SDL_android.c	Fri Sep 18 21:26:28 2015 +0200
     1.2 +++ b/src/core/android/SDL_android.c	Fri Sep 18 21:26:46 2015 +0200
     1.3 @@ -788,6 +788,10 @@
     1.4              /* Try fallback to APK expansion files */
     1.5              mid = (*mEnv)->GetMethodID(mEnv, (*mEnv)->GetObjectClass(mEnv, context),
     1.6                  "openAPKExpansionInputStream", "(Ljava/lang/String;)Ljava/io/InputStream;");
     1.7 +            if (!mid) {
     1.8 +                SDL_SetError("No openAPKExpansionInputStream() in Java class");
     1.9 +                goto failure; /* Java class is missing the required method */
    1.10 +            }
    1.11              inputStream = (*mEnv)->CallObjectMethod(mEnv, context, mid, fileNameJString);
    1.12  
    1.13              /* Exception is checked first because it always needs to be cleared.