diff options
-rw-r--r-- | platform/android/jni/mupdf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/android/jni/mupdf.c b/platform/android/jni/mupdf.c index d92528423..53cb7b3a9 100644 --- a/platform/android/jni/mupdf.c +++ b/platform/android/jni/mupdf.c | |||
@@ -515,6 +515,8 @@ JNI_FN(MuPDFCore_gotoPageInternal)(JNIEnv *env, jobject thiz, int page) | |||
515 | fz_irect bbox; | 515 | fz_irect bbox; |
516 | page_cache *pc; | 516 | page_cache *pc; |
517 | globals *glo = get_globals(env, thiz); | 517 | globals *glo = get_globals(env, thiz); |
518 | if (glo == NULL) | ||
519 | return; | ||
518 | fz_context *ctx = glo->ctx; | 520 | fz_context *ctx = glo->ctx; |
519 | 521 | ||
520 | for (i = 0; i < NUM_CACHE; i++) | 522 | for (i = 0; i < NUM_CACHE; i++) |
@@ -1803,6 +1805,8 @@ JNI_FN(MuPDFCore_getWidgetAreasInternal)(JNIEnv * env, jobject thiz, int pageNum | |||
1803 | int count; | 1805 | int count; |
1804 | page_cache *pc; | 1806 | page_cache *pc; |
1805 | globals *glo = get_globals(env, thiz); | 1807 | globals *glo = get_globals(env, thiz); |
1808 | if (glo == NULL) | ||
1809 | return NULL; | ||
1806 | 1810 | ||
1807 | rectFClass = (*env)->FindClass(env, "android/graphics/RectF"); | 1811 | rectFClass = (*env)->FindClass(env, "android/graphics/RectF"); |
1808 | if (rectFClass == NULL) return NULL; | 1812 | if (rectFClass == NULL) return NULL; |
@@ -1860,6 +1864,8 @@ JNI_FN(MuPDFCore_getAnnotationsInternal)(JNIEnv * env, jobject thiz, int pageNum | |||
1860 | int count; | 1864 | int count; |
1861 | page_cache *pc; | 1865 | page_cache *pc; |
1862 | globals *glo = get_globals(env, thiz); | 1866 | globals *glo = get_globals(env, thiz); |
1867 | if (glo == NULL) | ||
1868 | return NULL; | ||
1863 | 1869 | ||
1864 | annotClass = (*env)->FindClass(env, PACKAGENAME "/Annotation"); | 1870 | annotClass = (*env)->FindClass(env, PACKAGENAME "/Annotation"); |
1865 | if (annotClass == NULL) return NULL; | 1871 | if (annotClass == NULL) return NULL; |