8035842: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_Insets.cpp
Reviewed-by: anthony, serb
--- a/jdk/src/windows/native/sun/windows/awt_Insets.cpp Thu Feb 27 16:11:16 2014 +0400
+++ b/jdk/src/windows/native/sun/windows/awt_Insets.cpp Thu Feb 27 16:14:22 2014 +0400
@@ -46,14 +46,20 @@
TRY;
AwtInsets::leftID = env->GetFieldID(cls, "left", "I");
+ DASSERT(AwtInsets::leftID != NULL);
+ CHECK_NULL(AwtInsets::leftID);
+
AwtInsets::rightID = env->GetFieldID(cls, "right", "I");
- AwtInsets::topID = env->GetFieldID(cls, "top", "I");
- AwtInsets::bottomID = env->GetFieldID(cls, "bottom", "I");
+ DASSERT(AwtInsets::rightID != NULL);
+ CHECK_NULL(AwtInsets::rightID);
- DASSERT(AwtInsets::leftID != NULL);
- DASSERT(AwtInsets::rightID != NULL);
+ AwtInsets::topID = env->GetFieldID(cls, "top", "I");
DASSERT(AwtInsets::topID != NULL);
+ CHECK_NULL(AwtInsets::topID);
+
+ AwtInsets::bottomID = env->GetFieldID(cls, "bottom", "I");
DASSERT(AwtInsets::bottomID != NULL);
+ CHECK_NULL(AwtInsets::bottomID);
CATCH_BAD_ALLOC;
}