8036781: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_PrintDialog.cpp
authoralexsch
Tue, 11 Mar 2014 19:28:11 +0400
changeset 23635 71c09f77edb5
parent 23634 42644b4586e9
child 23636 e8579a943a6f
8036781: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_PrintDialog.cpp Reviewed-by: serb, pchelko
jdk/src/windows/native/sun/windows/awt_PrintDialog.cpp
--- 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;
 }