changeset 9589:2e464ef54988

8036761: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_TextComponent.cpp Reviewed-by: anthony, serb
author pchelko
date Thu, 06 Mar 2014 15:29:23 +0400
parents d0dbd097b6aa
children 0a574bcd66a7
files src/windows/native/sun/windows/awt_TextComponent.cpp
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_TextComponent.cpp	Thu Mar 06 15:05:41 2014 +0400
+++ b/src/windows/native/sun/windows/awt_TextComponent.cpp	Thu Mar 06 15:29:23 2014 +0400
@@ -852,9 +852,10 @@
     TRY;
 
     jclass textComponentClassID = env->FindClass("java/awt/TextComponent");
+    CHECK_NULL(textComponentClassID);
+
     AwtTextComponent::canAccessClipboardMID =
-        env->GetMethodID(textComponentClassID,
-        "canAccessClipboard", "()Z");
+        env->GetMethodID(textComponentClassID, "canAccessClipboard", "()Z");
     env->DeleteLocalRef(textComponentClassID);
 
     DASSERT(AwtTextComponent::canAccessClipboardMID != NULL);