mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix NPE when there is no application in WelcomeScreen (IDEA-CR-36456)
This commit is contained in:
@@ -20,7 +20,13 @@ class EdtExecutorServiceImpl extends EdtExecutorService {
|
||||
|
||||
@Override
|
||||
public void execute(@NotNull Runnable command) {
|
||||
execute(command, ModalityState.any());
|
||||
Application application = ApplicationManager.getApplication();
|
||||
if (application == null) {
|
||||
SwingUtilities.invokeLater(command);
|
||||
}
|
||||
else {
|
||||
execute(command, application.getAnyModalityState());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user