mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Make sure we won't open invalid files.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user