mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE fix
This commit is contained in:
@@ -203,6 +203,8 @@ public class UsageInfo2UsageAdapter implements Usage, UsageInModule, UsageInLibr
|
||||
PsiElement element = myUsageInfo.getElement();
|
||||
PsiFile psiFile = element.getContainingFile();
|
||||
VirtualFile virtualFile = getFile();
|
||||
if (virtualFile == null) return null;
|
||||
|
||||
ProjectRootManager projectRootManager = ProjectRootManager.getInstance(element.getProject());
|
||||
ProjectFileIndex fileIndex = projectRootManager.getFileIndex();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user