mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
add safeguards against sudden project close
GitOrigin-RevId: 5be4de04f6fb2d49db4fc10af2da5ff138949825
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0feb2dc602
commit
316a3bc0d8
+6
-4
@@ -50,10 +50,12 @@ class ExpressionEditorWithHistory extends XDebuggerExpressionEditor {
|
||||
|
||||
ApplicationManager.getApplication().executeOnPooledThread(()->
|
||||
ApplicationManager.getApplication().runReadAction(() -> {
|
||||
final PsiClass psiClass = DebuggerUtils.findClass(className,
|
||||
project, GlobalSearchScope.allScope(project));
|
||||
ApplicationManager.getApplication().invokeLater(() -> setContext(psiClass));
|
||||
}));
|
||||
if (!project.isDisposed()) {
|
||||
final PsiClass psiClass = DebuggerUtils.findClass(className,
|
||||
project, GlobalSearchScope.allScope(project));
|
||||
ApplicationManager.getApplication().invokeLater(() -> setContext(psiClass), project.getDisposed());
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
private void showHistory() {
|
||||
|
||||
Reference in New Issue
Block a user