mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-4177 libc++abi: terminating with uncaught exception of type NSException
Added check for AppContext
This commit is contained in:
committed by
alexey.ushakov@jetbrains.com
parent
641873f301
commit
81010d43ab
@@ -267,8 +267,11 @@ class _AppEventHandler {
|
||||
instance.systemSleepDispatcher.dispatch(new _NativeEvent(Boolean.FALSE));
|
||||
break;
|
||||
case NOTIFY_SCREEN_CHANGE_PARAMETERS:
|
||||
EventQueue.invokeLater(() -> ((SunGraphicsEnvironment)SunGraphicsEnvironment.
|
||||
getLocalGraphicsEnvironment()).displayChanged());
|
||||
if (AppContext.getAppContext() != null) {
|
||||
EventQueue.invokeLater(
|
||||
() -> ((SunGraphicsEnvironment)SunGraphicsEnvironment.
|
||||
getLocalGraphicsEnvironment()).displayChanged());
|
||||
}
|
||||
break;
|
||||
default:
|
||||
System.err.println("EAWT unknown native notification: " + code);
|
||||
|
||||
Reference in New Issue
Block a user