8035842: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_Insets.cpp
authorpchelko
Thu, 27 Feb 2014 16:14:22 +0400
changeset 23324 fb6002beb0ce
parent 23323 f44d37f9351c
child 23325 4c3942938b0d
8035842: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_Insets.cpp Reviewed-by: anthony, serb
jdk/src/windows/native/sun/windows/awt_Insets.cpp
--- 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;
 }