8036710: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_ScrollPane.cpp
authorserb
Wed, 12 Mar 2014 15:51:58 +0400
changeset 23639 3e4345c48d3f
parent 23638 46b619cade6c
child 23640 e6ab8b613dfa
8036710: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_ScrollPane.cpp Reviewed-by: pchelko, azvegint
jdk/src/windows/native/sun/windows/awt_ScrollPane.cpp
--- a/jdk/src/windows/native/sun/windows/awt_ScrollPane.cpp	Wed Mar 12 15:43:53 2014 +0400
+++ b/jdk/src/windows/native/sun/windows/awt_ScrollPane.cpp	Wed Mar 12 15:51:58 2014 +0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -600,12 +600,16 @@
 
     AwtScrollPane::scrollbarDisplayPolicyID =
         env->GetFieldID(cls, "scrollbarDisplayPolicy", "I");
+    DASSERT(AwtScrollPane::scrollbarDisplayPolicyID != NULL);
+    CHECK_NULL(AwtScrollPane::scrollbarDisplayPolicyID);
+
     AwtScrollPane::hAdjustableID =
         env->GetFieldID(cls, "hAdjustable", "Ljava/awt/ScrollPaneAdjustable;");
+    DASSERT(AwtScrollPane::hAdjustableID != NULL);
+    CHECK_NULL(AwtScrollPane::hAdjustableID);
+
     AwtScrollPane::vAdjustableID =
         env->GetFieldID(cls, "vAdjustable", "Ljava/awt/ScrollPaneAdjustable;");
-    DASSERT(AwtScrollPane::scrollbarDisplayPolicyID != NULL);
-    DASSERT(AwtScrollPane::hAdjustableID != NULL);
     DASSERT(AwtScrollPane::vAdjustableID != NULL);
 
     CATCH_BAD_ALLOC;
@@ -631,10 +635,11 @@
     TRY;
 
     AwtScrollPane::unitIncrementID = env->GetFieldID(cls,"unitIncrement", "I");
+    DASSERT(AwtScrollPane::unitIncrementID != NULL);
+    CHECK_NULL(AwtScrollPane::unitIncrementID);
+
     AwtScrollPane::blockIncrementID =
         env->GetFieldID(cls,"blockIncrement", "I");
-
-    DASSERT(AwtScrollPane::unitIncrementID != NULL);
     DASSERT(AwtScrollPane::blockIncrementID != NULL);
 
     CATCH_BAD_ALLOC;