src/share/native/sun/java2d/opengl/OGLSurfaceData.c

Print this page

        

@@ -541,11 +541,13 @@
     if (sdObject == NULL) {
         return;
     }
 
     JNU_SetFieldByName(env, NULL, sdObject, "nativeWidth", "I", width);
+    if (!((*env)->ExceptionOccurred(env))) {
     JNU_SetFieldByName(env, NULL, sdObject, "nativeHeight", "I", height);
+    }
 
     (*env)->DeleteLocalRef(env, sdObject);
 }
 
 /**