mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
project view: fix IAE if top-level file is a content root (IDEA-183236)
This commit is contained in:
+2
-2
@@ -254,8 +254,8 @@ public class ProjectViewDirectoryHelper {
|
||||
}
|
||||
|
||||
|
||||
private static boolean isFileUnderContentRoot(DirectoryIndex index, VirtualFile file) {
|
||||
return index.getInfoForFile(file).getContentRoot() != null;
|
||||
private static boolean isFileUnderContentRoot(DirectoryIndex index, @Nullable VirtualFile file) {
|
||||
return file != null && index.getInfoForFile(file).getContentRoot() != null;
|
||||
}
|
||||
|
||||
private PsiElement[] directoryChildrenInProject(PsiDirectory psiDirectory, final ViewSettings settings) {
|
||||
|
||||
Reference in New Issue
Block a user