mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-70653 - NPE: PsiFileNode.canRepresent
This commit is contained in:
@@ -201,7 +201,10 @@ public class PsiFileNode extends BasePsiNode<PsiFile> implements NavigatableWith
|
||||
|
||||
@Override
|
||||
public boolean canRepresent(final Object element) {
|
||||
return super.canRepresent(element) || getValue() != null && element != null && element.equals(getValue().getVirtualFile());
|
||||
if (super.canRepresent(element)) return true;
|
||||
|
||||
PsiFile value = getValue();
|
||||
return value != null && element != null && element.equals(value.getVirtualFile());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user