diff --git a/src/windows/native/sun/windows/awt_Insets.cpp b/src/windows/native/sun/windows/awt_Insets.cpp index 3241bc8610d24e8331207640444e4a12f02b0f6c..ee90495446078dbd5476a6071f07d7d7b5d38245 100644 --- a/src/windows/native/sun/windows/awt_Insets.cpp +++ b/src/windows/native/sun/windows/awt_Insets.cpp @@ -46,14 +46,20 @@ Java_java_awt_Insets_initIDs(JNIEnv *env, jclass cls) { TRY; AwtInsets::leftID = env->GetFieldID(cls, "left", "I"); - AwtInsets::rightID = env->GetFieldID(cls, "right", "I"); - AwtInsets::topID = env->GetFieldID(cls, "top", "I"); - AwtInsets::bottomID = env->GetFieldID(cls, "bottom", "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::bottomID != NULL); + CHECK_NULL(AwtInsets::bottomID); CATCH_BAD_ALLOC; }