changeset 9598:40d3e4cc68d4

8036781: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_PrintDialog.cpp Reviewed-by: serb, pchelko
author alexsch
date Tue, 11 Mar 2014 19:28:11 +0400
parents 9366f16bbaea
children 55dc85ff351f
files src/windows/native/sun/windows/awt_PrintDialog.cpp
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_PrintDialog.cpp	Tue Mar 11 19:13:59 2014 +0400
+++ b/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;
 }