mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE (IDEA-147001)
This commit is contained in:
@@ -882,8 +882,7 @@ public class ScopeTreeViewPanel extends JPanel implements Disposable {
|
||||
}
|
||||
else if (node instanceof FileNode) {
|
||||
final PsiFile psiFile = (PsiFile)node.getPsiElement();
|
||||
LOG.assertTrue(psiFile != null);
|
||||
return psiFile.getContainingDirectory();
|
||||
return psiFile != null ? psiFile.getContainingDirectory() : null;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user