8035844: [parfait] JNI exception pending in src/windows/native/sun/windows/awt_Rectangle.cpp
authorpchelko
Thu, 27 Feb 2014 22:57:19 +0400
changeset 23327 c7aca991f60e
parent 23326 4b7f5c8d649d
child 23329 9d0dc1c406cc
8035844: [parfait] JNI exception pending in src/windows/native/sun/windows/awt_Rectangle.cpp Reviewed-by: anthony, serb
jdk/src/windows/native/sun/windows/awt_Rectangle.cpp
--- a/jdk/src/windows/native/sun/windows/awt_Rectangle.cpp	Thu Feb 27 22:54:14 2014 +0400
+++ b/jdk/src/windows/native/sun/windows/awt_Rectangle.cpp	Thu Feb 27 22:57:19 2014 +0400
@@ -46,14 +46,20 @@
     TRY;
 
     AwtRectangle::xID = env->GetFieldID(cls, "x", "I");
+    DASSERT(AwtRectangle::xID != NULL);
+    CHECK_NULL(AwtRectangle::xID);
+
     AwtRectangle::yID = env->GetFieldID(cls, "y", "I");
-    AwtRectangle::widthID = env->GetFieldID(cls, "width", "I");
-    AwtRectangle::heightID = env->GetFieldID(cls, "height", "I");
+    DASSERT(AwtRectangle::yID != NULL);
+    CHECK_NULL(AwtRectangle::yID);
 
-    DASSERT(AwtRectangle::xID != NULL);
-    DASSERT(AwtRectangle::yID != NULL);
+    AwtRectangle::widthID = env->GetFieldID(cls, "width", "I");
     DASSERT(AwtRectangle::widthID != NULL);
+    CHECK_NULL(AwtRectangle::widthID);
+
+    AwtRectangle::heightID = env->GetFieldID(cls, "height", "I");
     DASSERT(AwtRectangle::heightID != NULL);
+    CHECK_NULL(AwtRectangle::heightID);
 
     CATCH_BAD_ALLOC;
 }