提交 1aa71025 编写于 作者: P pchelko

8035855: [parfait] JNI exception pending in...

8035855: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_DataTransferer.cpp
Reviewed-by: anthony, serb
上级 308dbf32
......@@ -274,6 +274,9 @@ Java_sun_awt_windows_WDataTransferer_dragQueryFile
jclass str_clazz = env->FindClass("java/lang/String");
DASSERT(str_clazz != NULL);
if (str_clazz == NULL) {
throw std::bad_alloc();
}
jobjectArray filenames = env->NewObjectArray(nFilenames, str_clazz,
NULL);
if (filenames == NULL) {
......@@ -827,6 +830,7 @@ Java_sun_awt_windows_WDataTransferer_registerClipboardFormat(JNIEnv *env,
TRY;
LPCTSTR cStr = JNU_GetStringPlatformChars(env, str, NULL);
CHECK_NULL_RETURN(cStr, 0);
jlong value = ::RegisterClipboardFormat(cStr);
JNU_ReleaseStringPlatformChars(env, str, cStr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册