changeset 23629:eab9fe49607d

8036780: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_Dimension.cpp Reviewed-by: pchelko, azvegint
author serb
date Fri, 07 Mar 2014 19:45:56 +0400
parents 158574ce42ec
children 5e8ec2d6e2db
files jdk/src/windows/native/sun/windows/awt_Dimension.cpp
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/windows/native/sun/windows/awt_Dimension.cpp	Thu Mar 06 22:33:21 2014 +0400
+++ b/jdk/src/windows/native/sun/windows/awt_Dimension.cpp	Fri Mar 07 19:45:56 2014 +0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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
@@ -44,9 +44,10 @@
     TRY;
 
     AwtDimension::widthID = env->GetFieldID(cls, "width", "I");
+    DASSERT(AwtDimension::widthID != NULL);
+    CHECK_NULL(AwtDimension::widthID);
+
     AwtDimension::heightID = env->GetFieldID(cls, "height", "I");
-
-    DASSERT(AwtDimension::widthID != NULL);
     DASSERT(AwtDimension::heightID != NULL);
 
     CATCH_BAD_ALLOC;