changeset 9232:ef21413d240a

8028725: [Parfait] warnings from b116 for jdk.src.solaris.native.java.net: JNI pending exceptions Reviewed-by: alanb
author michaelm
date Tue, 04 Feb 2014 11:31:27 +0000
parents 7d5029885187
children b87751b651ec
files src/solaris/native/java/net/Inet6AddressImpl.c src/windows/native/java/net/Inet6AddressImpl.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/java/net/Inet6AddressImpl.c	Tue Feb 04 10:00:24 2014 +0100
+++ b/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/src/windows/native/java/net/Inet6AddressImpl.c	Tue Feb 04 10:00:24 2014 +0100
+++ b/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) {