mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Platform: possible npe in 'go-to' popup when PsiElementNavigatableItem.getTargetElement returns null.
This commit is contained in:
@@ -38,7 +38,7 @@ public class NavigationItemFileStatus {
|
||||
}
|
||||
if (item instanceof PsiElementNavigationItem) {
|
||||
PsiElement target = ((PsiElementNavigationItem) item).getTargetElement();
|
||||
return getPsiElementFileStatus(target);
|
||||
if (target != null) return getPsiElementFileStatus(target);
|
||||
}
|
||||
return FileStatus.NOT_CHANGED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user