8038075: JNI warnings in jdk/src/share/native/sun/misc/VMSupport.c
authordfuchs
Tue, 29 Sep 2015 19:50:56 +0200
changeset 32839 68348f616944
parent 32838 caeef2c79243
child 32840 02bff5d9f260
8038075: JNI warnings in jdk/src/share/native/sun/misc/VMSupport.c Reviewed-by: rriggs Contributed-by: vyom.tewari@oracle.com
jdk/src/java.base/share/native/libjava/VMSupport.c
--- a/jdk/src/java.base/share/native/libjava/VMSupport.c	Tue Sep 29 16:44:29 2015 +0100
+++ b/jdk/src/java.base/share/native/libjava/VMSupport.c	Tue Sep 29 19:50:56 2015 +0200
@@ -42,6 +42,7 @@
         if (!JDK_InitJvmHandle()) {
             JNU_ThrowInternalError(env,
                  "Handle for JVM not found for symbol lookup");
+            return NULL;
         }
         InitAgentProperties_fp = (INIT_AGENT_PROPERTIES_FN)
             JDK_FindJvmEntry("JVM_InitAgentProperties");