IDEA-136386: ChooseByNameBase: prevent IAE when there are no projects open

This commit is contained in:
Sergey Savenko
2015-02-11 20:21:54 +03:00
parent 6bc84cd119
commit 97a6392c42
@@ -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) {