Make sure we won't open invalid files.

This commit is contained in:
Maxim Shafirov
2010-03-25 20:46:14 +03:00
parent 531f1b0cb2
commit 20923ca45a
@@ -216,7 +216,7 @@ public class StructureViewWrapperImpl implements StructureViewWrapper, Disposabl
}
}
if (file != null) {
if (file != null && file.isValid()) {
if (file.isDirectory()) {
if (ProjectRootsUtil.isModuleContentRoot(file, myProject)) {
Module module = ModuleUtil.findModuleForFile(file, myProject);