diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-16 22:39:00 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-16 23:13:41 +0800 |
commit | 3dc9cfd2af0e795703c4fed6b105153e85501ce7 (patch) | |
tree | e6ec6bcbfe727f678d685ff57c6918c895d87014 /platform | |
parent | 284976bc0e766c4d7fa246457f33bad51345211c (diff) | |
download | mupdf-3dc9cfd2af0e795703c4fed6b105153e85501ce7.tar.xz |
JNI: Avoid throwing IllegalargumentException.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/java/mupdf_native.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c index f32cc097..d77f101b 100644 --- a/platform/java/mupdf_native.c +++ b/platform/java/mupdf_native.c @@ -3508,7 +3508,6 @@ FUN(Image_getMask)(JNIEnv *env, jobject self) fz_image *img = from_Image(env, self); if (!ctx) return NULL; - if (!img) { jni_throw_arg(env, "image must not be null"); return NULL; } return to_Image_safe(ctx, env, img->mask); } |