8170493: JNI exception pending in JavaComponentAccessibility.m

Reviewed-by: serb, psadhukhan
This commit is contained in:
Phil Race 2017-02-06 09:32:41 -08:00
parent e9dd1485e6
commit 6720ad090e

View File

@ -136,7 +136,7 @@ static NSObject *sAttributeNamesLOCK = nil;
fJavaRole = [javaRole retain];
fAccessible = (*env)->NewWeakGlobalRef(env, accessible);
(*env)->ExceptionClear(env); // in case of OOME
jobject jcomponent = [(AWTView *)fView awtComponent:env];
fComponent = (*env)->NewWeakGlobalRef(env, jcomponent);
(*env)->DeleteLocalRef(env, jcomponent);