summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-12-06 09:21:13 +0100
committerSven Gothel <[email protected]>2019-12-06 09:21:13 +0100
commita8c2de110a2254af137a3d99007cc77e3ecd8078 (patch)
treecb83340a5f5e3600afd3fd258415cafceb13ee0e /src
parent578edfc20915e2e2aa18aa06e49f7341f86990c4 (diff)
Bug 1412 - JNI: NEWT Check & Handle Exception after calling back into Java (NewtCommon.c)
Diffstat (limited to 'src')
-rw-r--r--src/newt/native/NewtCommon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newt/native/NewtCommon.c b/src/newt/native/NewtCommon.c
index e419cb742..313b1b9fe 100644
--- a/src/newt/native/NewtCommon.c
+++ b/src/newt/native/NewtCommon.c
@@ -122,6 +122,7 @@ void NewtCommon_ExceptionCheck1_throwNewRuntimeException(JNIEnv *env, const char
const char * NewtCommon_GetStaticStringMethod(JNIEnv *jniEnv, jclass clazz, jmethodID jGetStrID, char *dest, int destSize, const char *altText) {
if(NULL != jniEnv && NULL != clazz && NULL != jGetStrID) {
jstring jstr = (jstring) (*jniEnv)->CallStaticObjectMethod(jniEnv, clazz, jGetStrID);
+ NewtCommon_ExceptionCheck0(env);
if(NULL != jstr) {
const char * str = (*jniEnv)->GetStringUTFChars(jniEnv, jstr, NULL);
if( NULL != str) {