8036781: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_PrintDialog.cpp
Reviewed-by: serb, pchelko
--- a/jdk/src/windows/native/sun/windows/awt_PrintDialog.cpp Tue Mar 11 19:13:59 2014 +0400
+++ b/jdk/src/windows/native/sun/windows/awt_PrintDialog.cpp Tue Mar 11 19:28:11 2014 +0400
@@ -172,11 +172,13 @@
AwtPrintDialog::parentID =
env->GetFieldID(cls, "parent", "Lsun/awt/windows/WComponentPeer;");
+ DASSERT(AwtPrintDialog::parentID != NULL);
+ CHECK_NULL(AwtPrintDialog::parentID);
+
AwtPrintDialog::setHWndMID =
env->GetMethodID(cls, "setHWnd", "(J)V");
-
- DASSERT(AwtPrintDialog::parentID != NULL);
DASSERT(AwtPrintDialog::setHWndMID != NULL);
+ CHECK_NULL(AwtPrintDialog::setHWndMID);
CATCH_BAD_ALLOC;
}