8046888: JNI exception pending in jdk/src/share/native/sun/awt/image/awt_parseImage.c
authorpchelko
Tue, 22 Jul 2014 11:38:22 +0400
changeset 25791 ea7a0846cb6f
parent 25790 ca104ec6b3e7
child 25792 80fae5c73cb9
8046888: JNI exception pending in jdk/src/share/native/sun/awt/image/awt_parseImage.c Reviewed-by: prr, serb Contributed-by: Anton Melnikov <anton.melnikov@oracle.com>
jdk/src/share/native/sun/awt/image/awt_parseImage.c
--- a/jdk/src/share/native/sun/awt/image/awt_parseImage.c	Mon Jul 21 21:41:11 2014 +0400
+++ b/jdk/src/share/native/sun/awt/image/awt_parseImage.c	Tue Jul 22 11:38:22 2014 +0400
@@ -508,6 +508,7 @@
     cmP->csType = (*env)->GetIntField(env, cmP->jcmodel, g_CMcsTypeID);
 
     cmP->cmType = getColorModelType(env, jcmodel);
+    JNU_CHECK_EXCEPTION_RETURN(env, -1);
 
     cmP->isDefaultCM = FALSE;
     cmP->isDefaultCompatCM = FALSE;