8028725: [Parfait] warnings from b116 for jdk.src.solaris.native.java.net: JNI pending exceptions
authormichaelm
Tue, 04 Feb 2014 11:31:27 +0000
changeset 22640 58db7b59eaf6
parent 22639 37f4508257fe
child 22641 e47f8892133e
8028725: [Parfait] warnings from b116 for jdk.src.solaris.native.java.net: JNI pending exceptions Reviewed-by: alanb
jdk/src/solaris/native/java/net/Inet6AddressImpl.c
jdk/src/windows/native/java/net/Inet6AddressImpl.c
--- a/jdk/src/solaris/native/java/net/Inet6AddressImpl.c	Tue Feb 04 10:00:24 2014 +0100
+++ b/jdk/src/solaris/native/java/net/Inet6AddressImpl.c	Tue Feb 04 11:31:27 2014 +0000
@@ -196,6 +196,7 @@
     }
 
     name = (*env)->NewStringUTF(env, hostname);
+    CHECK_NULL(name);
 
     /* Iterate over the interfaces, and total up the number of IPv4 and IPv6
      * addresses we have. Also keep a count of loopback addresses. We need to
@@ -548,6 +549,7 @@
 
     if (!error) {
         ret = (*env)->NewStringUTF(env, host);
+        CHECK_NULL(ret);
     }
 #endif /* AF_INET6 */
 
--- a/jdk/src/windows/native/java/net/Inet6AddressImpl.c	Tue Feb 04 10:00:24 2014 +0100
+++ b/jdk/src/windows/native/java/net/Inet6AddressImpl.c	Tue Feb 04 11:31:27 2014 +0000
@@ -347,6 +347,7 @@
 
     if (!error) {
         ret = (*env)->NewStringUTF(env, host);
+        CHECK_NULL(ret);
     }
 
     if (ret == NULL) {