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>
--- 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;