mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-136386: ChooseByNameBase: prevent IAE when there are no projects open
This commit is contained in:
@@ -530,7 +530,7 @@ public abstract class ChooseByNameBase {
|
||||
return;
|
||||
}
|
||||
|
||||
if (oppositeComponent != null) {
|
||||
if (oppositeComponent != null && myProject != null) {
|
||||
ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(myProject);
|
||||
ToolWindow toolWindow = toolWindowManager.getToolWindow(toolWindowManager.getActiveToolWindowId());
|
||||
if (toolWindow != null) {
|
||||
|
||||
Reference in New Issue
Block a user