From a742ac09981f7c681f63f88738e7eded95412599 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Tue, 18 Apr 2017 03:52:53 +0800 Subject: jni: Propagate exception message, do not override it. --- platform/java/mupdf_native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c index 3f211d78..2c866000 100644 --- a/platform/java/mupdf_native.c +++ b/platform/java/mupdf_native.c @@ -4923,7 +4923,7 @@ FUN(Page_textAsHtml)(JNIEnv *env, jobject self) } fz_catch(ctx) { - jni_throw_oom(env, "out of memory in MuPDFCore_textAsHtml"); + jni_rethrow(env, ctx); return NULL; } -- cgit v1.2.3