changeset 9858:9d09209061d2

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 305a9ed62593
children 7078861002ae
files src/share/native/sun/awt/image/awt_parseImage.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/awt/image/awt_parseImage.c	Mon Jul 21 21:41:11 2014 +0400
+++ b/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;