7171591: getDefaultScopeID() in src/solaris/native/java/net/net_util_md.c should return a value
authorkhazra
Tue, 29 May 2012 13:16:17 -0700
changeset 12856 712335896cc4
parent 12855 6a35a44533e3
child 12857 0a5f341c2a28
7171591: getDefaultScopeID() in src/solaris/native/java/net/net_util_md.c should return a value Summary: Use CHECK_NULL_RETURN instead of CHECK_NULL Reviewed-by: alanb
jdk/src/solaris/native/java/net/net_util_md.c
--- a/jdk/src/solaris/native/java/net/net_util_md.c	Tue May 29 09:42:09 2012 +0800
+++ b/jdk/src/solaris/native/java/net/net_util_md.c	Tue May 29 13:16:17 2012 -0700
@@ -114,9 +114,9 @@
     static jfieldID ni_defaultIndexID;
     if (ni_class == NULL) {
         jclass c = (*env)->FindClass(env, "java/net/NetworkInterface");
-        CHECK_NULL(c);
+        CHECK_NULL_RETURN(c, 0);
         c = (*env)->NewGlobalRef(env, c);
-        CHECK_NULL(c);
+        CHECK_NULL_RETURN(c, 0);
         ni_defaultIndexID = (*env)->GetStaticFieldID(env, c,
                                                      "defaultIndex", "I");
         ni_class = c;