IJPL-161509 IDEA 2024.3 fails to start if there is no appropriate config folder and Screen Reader is running on the machine

Don't call app-related APIs if app is not loaded (yet).

GitOrigin-RevId: 9629f0b80d0cc1608afbc190e23db9d019a2fdf3
This commit is contained in:
Lev Serebryakov
2024-09-09 12:43:47 +00:00
committed by intellij-monorepo-bot
parent 9e34643884
commit 576e10c744
@@ -486,8 +486,14 @@ public abstract class DialogWrapper {
processDoNotAskOnCancel();
}
//maybe readaction
WriteIntentReadAction.run((Runnable)() -> Disposer.dispose(myDisposable));
// Can be called very early when there is no application yet
if (LoadingState.COMPONENTS_LOADED.isOccurred()) {
//maybe readaction
WriteIntentReadAction.run((Runnable)() -> Disposer.dispose(myDisposable));
}
else {
Disposer.dispose(myDisposable);
}
}
public final void close(int exitCode) {