8036761: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_TextComponent.cpp
authorpchelko
Thu, 06 Mar 2014 15:29:23 +0400
changeset 23626 4494f1fd1f57
parent 23625 bb223c2c6fc0
child 23627 f578c6ea3c8d
8036761: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_TextComponent.cpp Reviewed-by: anthony, serb
jdk/src/windows/native/sun/windows/awt_TextComponent.cpp
--- a/jdk/src/windows/native/sun/windows/awt_TextComponent.cpp	Thu Mar 06 15:05:41 2014 +0400
+++ b/jdk/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);