8036759: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_AWTEvent.cpp
authorpchelko
Tue, 18 Mar 2014 12:30:17 +0400
changeset 23665 3597c2a96fd3
parent 23664 5a1b01d7eeb2
child 23666 a54bf43b5ba9
8036759: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_AWTEvent.cpp Reviewed-by: anthony, serb
jdk/src/windows/native/sun/windows/awt_AWTEvent.cpp
--- a/jdk/src/windows/native/sun/windows/awt_AWTEvent.cpp	Mon Mar 17 20:09:41 2014 +0400
+++ b/jdk/src/windows/native/sun/windows/awt_AWTEvent.cpp	Tue Mar 18 12:30:17 2014 +0400
@@ -71,12 +71,16 @@
     TRY;
 
     AwtAWTEvent::bdataID = env->GetFieldID(cls, "bdata", "[B");
-    AwtAWTEvent::idID = env->GetFieldID(cls, "id", "I");
-    AwtAWTEvent::consumedID = env->GetFieldID(cls, "consumed", "Z");
+    DASSERT(AwtAWTEvent::bdataID != NULL);
+    CHECK_NULL(AwtAWTEvent::bdataID);
 
-    DASSERT(AwtAWTEvent::bdataID != NULL);
+    AwtAWTEvent::idID = env->GetFieldID(cls, "id", "I");
     DASSERT(AwtAWTEvent::idID != NULL);
+    CHECK_NULL(AwtAWTEvent::idID);
+
+    AwtAWTEvent::consumedID = env->GetFieldID(cls, "consumed", "Z");
     DASSERT(AwtAWTEvent::consumedID != NULL);
+    CHECK_NULL(AwtAWTEvent::consumedID);
 
     CATCH_BAD_ALLOC;
 }