changeset 23327:c7aca991f60e

8035844: [parfait] JNI exception pending in src/windows/native/sun/windows/awt_Rectangle.cpp Reviewed-by: anthony, serb
author pchelko
date Thu, 27 Feb 2014 22:57:19 +0400
parents 4b7f5c8d649d
children 9d0dc1c406cc
files jdk/src/windows/native/sun/windows/awt_Rectangle.cpp
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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");
+    DASSERT(AwtRectangle::yID != NULL);
+    CHECK_NULL(AwtRectangle::yID);
+
     AwtRectangle::widthID = env->GetFieldID(cls, "width", "I");
+    DASSERT(AwtRectangle::widthID != NULL);
+    CHECK_NULL(AwtRectangle::widthID);
+
     AwtRectangle::heightID = env->GetFieldID(cls, "height", "I");
-
-    DASSERT(AwtRectangle::xID != NULL);
-    DASSERT(AwtRectangle::yID != NULL);
-    DASSERT(AwtRectangle::widthID != NULL);
     DASSERT(AwtRectangle::heightID != NULL);
+    CHECK_NULL(AwtRectangle::heightID);
 
     CATCH_BAD_ALLOC;
 }