8197930: JNI exception pending in initializeEncoding of jni_util.c
authorrriggs
Tue, 12 Jun 2018 13:07:47 -0400
changeset 50527 83fd54252ee4
parent 50526 3a5aafb12ae6
child 50528 1fd4844371bb
8197930: JNI exception pending in initializeEncoding of jni_util.c Reviewed-by: mchung, stuefe
src/java.base/share/native/libjava/jni_util.c
--- a/src/java.base/share/native/libjava/jni_util.c	Tue Jun 12 11:21:07 2018 -0400
+++ b/src/java.base/share/native/libjava/jni_util.c	Tue Jun 12 13:07:47 2018 -0400
@@ -838,8 +838,11 @@
     CHECK_NULL(String_getBytes_ID);
     String_init_ID = (*env)->GetMethodID(env, strClazz,
                                          "<init>", "([BLjava/lang/String;)V");
+    CHECK_NULL(String_init_ID);
     String_coder_ID = (*env)->GetFieldID(env, strClazz, "coder", "B");
+    CHECK_NULL(String_coder_ID);
     String_value_ID = (*env)->GetFieldID(env, strClazz, "value", "[B");
+    CHECK_NULL(String_value_ID);
 }
 
 JNIEXPORT jstring