@@ -706,10 +706,14 @@ { isFullScreenExitingLoop = YES; GET_MAIN_JENV; (*env)->CallStaticObjectMethod(env, jApplicationClass, javaIDs.Application.enterNestedEventLoop); + if ((*env)->ExceptionCheck(env) == JNI_TRUE) { + (*env)->ExceptionDescribe(env); + (*env)->ExceptionClear(env); + } isFullScreenExitingLoop = NO; } + (void)leaveFullScreenExitingLoopIfNeeded {