diff options
Diffstat (limited to 'platform/android/viewer/jni/mupdf.c')
-rw-r--r-- | platform/android/viewer/jni/mupdf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/android/viewer/jni/mupdf.c b/platform/android/viewer/jni/mupdf.c index 9f26651b..e928e70f 100644 --- a/platform/android/viewer/jni/mupdf.c +++ b/platform/android/viewer/jni/mupdf.c @@ -2341,7 +2341,7 @@ JNI_FN(MuPDFCore_getFocusedWidgetTypeInternal)(JNIEnv * env, jobject thiz) pdf_document *idoc = pdf_specifics(ctx, glo->doc); pdf_widget *focus; - if (ctx, idoc == NULL) + if (ctx == NULL || idoc == NULL) return NONE; focus = pdf_focused_widget(ctx, idoc); @@ -2376,7 +2376,7 @@ JNI_FN(MuPDFCore_getFocusedWidgetSignatureState)(JNIEnv * env, jobject thiz) pdf_document *idoc = pdf_specifics(ctx, glo->doc); pdf_widget *focus; - if (ctx, idoc == NULL) + if (ctx == NULL || idoc == NULL) return Signature_NoSupport; focus = pdf_focused_widget(ctx, idoc); |