8032864: [macosx] sigsegv (0Xb) Being Generated When Starting JDev With Voiceover Running

Reviewed-by: anthony, serb
This commit is contained in:
Petr Pchelko 2014-07-22 17:10:50 +04:00
parent f148110b41
commit a5e2b3c3fb

View File

@ -1108,7 +1108,10 @@ static NSObject *sAttributeNamesLOCK = nil;
JNIEnv *env = [ThreadUtilities getJNIEnv];
id value = nil;
NSWindow* hostWindow = [[self->fView window] retain];
jobject focused = JNFCallStaticObjectMethod(env, jm_getFocusOwner, fComponent); // AWT_THREADING Safe (AWTRunLoop)
[hostWindow release];
if (focused != NULL) {
if (JNFIsInstanceOf(env, focused, &sjc_Accessible)) {
value = [JavaComponentAccessibility createWithAccessible:focused withEnv:env withView:fView];