summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-09-16 22:36:42 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-09-16 23:13:42 +0800
commita60deabec14935d20707b39e7ce65d83f3bcbb0b (patch)
treee4f2fdf8048c6361dc22ae5a6e56fd109031d670 /platform
parentc9e3eb6f03a07f663c7cd1f82e683bdd96c8bdea (diff)
downloadmupdf-a60deabec14935d20707b39e7ce65d83f3bcbb0b.tar.xz
JNI: Do not fail on using null as a value in a dictionary.
The underlying pdf_dict_put() converts into a null object.
Diffstat (limited to 'platform')
-rw-r--r--platform/java/mupdf_native.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c
index 84743e26..f712f972 100644
--- a/platform/java/mupdf_native.c
+++ b/platform/java/mupdf_native.c
@@ -6933,7 +6933,6 @@ FUN(PDFObject_putDictionaryPDFObjectString)(JNIEnv *env, jobject self, jobject j
pdf_obj *val = NULL;
if (!ctx) return;
- if (!jstr) { jni_throw_arg(env, "string must not be null"); return; }
if (jstr)
{
str = (*env)->GetStringUTFChars(env, jstr, NULL);