8036759: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_AWTEvent.cpp
Reviewed-by: anthony, serb
--- 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;
}