changeset 23324:fb6002beb0ce

8035842: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_Insets.cpp Reviewed-by: anthony, serb
author pchelko
date Thu, 27 Feb 2014 16:14:22 +0400
parents f44d37f9351c
children 4c3942938b0d
files jdk/src/windows/native/sun/windows/awt_Insets.cpp
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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");
+    DASSERT(AwtInsets::rightID != NULL);
+    CHECK_NULL(AwtInsets::rightID);
+
     AwtInsets::topID = env->GetFieldID(cls, "top", "I");
+    DASSERT(AwtInsets::topID != NULL);
+    CHECK_NULL(AwtInsets::topID);
+
     AwtInsets::bottomID = env->GetFieldID(cls, "bottom", "I");
-
-    DASSERT(AwtInsets::leftID != NULL);
-    DASSERT(AwtInsets::rightID != NULL);
-    DASSERT(AwtInsets::topID != NULL);
     DASSERT(AwtInsets::bottomID != NULL);
+    CHECK_NULL(AwtInsets::bottomID);
 
     CATCH_BAD_ALLOC;
 }