From 53e25e574a6bfe28e0b55bc63312c442e7c6a40d Mon Sep 17 00:00:00 2001 From: michaelm Date: Tue, 4 Feb 2014 11:31:27 +0000 Subject: [PATCH] 8028725: [Parfait] warnings from b116 for jdk.src.solaris.native.java.net: JNI pending exceptions Reviewed-by: alanb --- src/solaris/native/java/net/Inet6AddressImpl.c | 1 + src/windows/native/java/net/Inet6AddressImpl.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/solaris/native/java/net/Inet6AddressImpl.c b/src/solaris/native/java/net/Inet6AddressImpl.c index 9850bb32c..da510a28c 100644 --- a/src/solaris/native/java/net/Inet6AddressImpl.c +++ b/src/solaris/native/java/net/Inet6AddressImpl.c @@ -555,6 +555,7 @@ Java_java_net_Inet6AddressImpl_getHostByAddr(JNIEnv *env, jobject this, if (!error) { ret = (*env)->NewStringUTF(env, host); + CHECK_NULL(ret); } #endif /* AF_INET6 */ diff --git a/src/windows/native/java/net/Inet6AddressImpl.c b/src/windows/native/java/net/Inet6AddressImpl.c index 2ab1ded0d..c9e48bec4 100644 --- a/src/windows/native/java/net/Inet6AddressImpl.c +++ b/src/windows/native/java/net/Inet6AddressImpl.c @@ -349,6 +349,7 @@ Java_java_net_Inet6AddressImpl_getHostByAddr(JNIEnv *env, jobject this, if (!error) { ret = (*env)->NewStringUTF(env, host); + CHECK_NULL(ret); } if (ret == NULL) { -- GitLab