changeset 9610:cab9d910396f

8036790: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_Scrollbar.cpp Reviewed-by: serb, pchelko
author azvegint
date Mon, 17 Mar 2014 19:44:16 +0400
parents fef8ff53007c
children c744e1af02c5
files src/windows/native/sun/windows/awt_Scrollbar.cpp
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_Scrollbar.cpp	Mon Mar 17 19:38:34 2014 +0400
+++ b/src/windows/native/sun/windows/awt_Scrollbar.cpp	Mon Mar 17 19:44:16 2014 +0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2009, 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
@@ -488,11 +488,14 @@
     TRY;
 
     AwtScrollbar::lineIncrementID = env->GetFieldID(cls, "lineIncrement", "I");
+    DASSERT(AwtScrollbar::lineIncrementID != NULL);
+    CHECK_NULL(AwtScrollbar::lineIncrementID);
+
     AwtScrollbar::pageIncrementID = env->GetFieldID(cls, "pageIncrement", "I");
+    DASSERT(AwtScrollbar::pageIncrementID != NULL);
+    CHECK_NULL(AwtScrollbar::pageIncrementID);
+
     AwtScrollbar::orientationID = env->GetFieldID(cls, "orientation", "I");
-
-    DASSERT(AwtScrollbar::lineIncrementID != NULL);
-    DASSERT(AwtScrollbar::pageIncrementID != NULL);
     DASSERT(AwtScrollbar::orientationID != NULL);
 
     CATCH_BAD_ALLOC;