no children if disposed (EA-101172)

This commit is contained in:
Maxim.Mossienko
2017-05-12 22:29:15 +02:00
parent afb6e4fae2
commit 32be586eee
@@ -46,6 +46,7 @@ public class ProjectViewProjectNode extends AbstractProjectNode {
@Override
@NotNull
public Collection<AbstractTreeNode> getChildren() {
if (myProject.isDisposed()) return Collections.emptyList();
List<VirtualFile> topLevelContentRoots = ProjectViewDirectoryHelper.getInstance(myProject).getTopLevelRoots();
Set<Module> modules = new LinkedHashSet<>(topLevelContentRoots.size());