EA-33792 - assert: ComponentManagerImpl.getPicoContainer

This commit is contained in:
anna
2012-02-20 10:45:12 +01:00
parent 5825efe2e3
commit bb7e6adbde
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -237,7 +237,7 @@ public class DirectoryNode extends PackageDependenciesNode {
@Override
public String getComment() {
if (myVDirectory != null && myVDirectory.isValid()) {
if (myVDirectory != null && myVDirectory.isValid() && !myProject.isDisposed()) {
return ProjectViewDirectoryHelper.getInstance(myProject).getLocationString(getPsiDirectory());
}
return super.getComment();