8035844: [parfait] JNI exception pending in src/windows/native/sun/windows/awt_Rectangle.cpp
Reviewed-by: anthony, serb
--- 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;
}