changeset 25791:ea7a0846cb6f

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>
author pchelko
date Tue, 22 Jul 2014 11:38:22 +0400
parents ca104ec6b3e7
children 80fae5c73cb9
files jdk/src/share/native/sun/awt/image/awt_parseImage.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;