8170494: JNI exception pending in PlainDatagramSocketImpl.c
authorigerasim
Thu, 21 Mar 2019 12:28:58 -0700
changeset 54219 35e8d1eb4040
parent 54218 3fe41815505c
child 54220 7fbb4340b125
8170494: JNI exception pending in PlainDatagramSocketImpl.c Reviewed-by: clanger, vtewari
src/java.base/unix/native/libnet/PlainDatagramSocketImpl.c
--- a/src/java.base/unix/native/libnet/PlainDatagramSocketImpl.c	Thu Mar 21 11:58:00 2019 -0700
+++ b/src/java.base/unix/native/libnet/PlainDatagramSocketImpl.c	Thu Mar 21 12:28:58 2019 -0700
@@ -1496,6 +1496,7 @@
             CHECK_NULL_RETURN(ni_class, NULL);
         }
         ni = Java_java_net_NetworkInterface_getByInetAddress0(env, ni_class, addr);
+        JNU_CHECK_EXCEPTION_RETURN(env, NULL);
         if (ni) {
             return ni;
         }