Update awt_GraphicsEnv.c

This commit is contained in:
Tran Khanh Duy 2020-10-06 06:28:45 +07:00 committed by GitHub
parent b475137c26
commit 86fe89e54f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ Java_sun_awt_X11GraphicsConfig_pGetBounds(JNIEnv *env, jobject this, jint screen
JNU_GetLongFieldAsPtr(env, this, x11GraphicsConfigIDs.aData);
*/
clazz = (*env)->FindClass(env, "java/awt/Rectangle");
CHECK_NULL_RETURN(clazz, NULL);
// CHECK_NULL_RETURN(clazz, NULL);
mid = (*env)->GetMethodID(env, clazz, "<init>", "(IIII)V");
if (mid != NULL) {
// TODO: change width height