mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-19136: Returning null leads to NPE because #ensureValid is @NotNull
This commit is contained in:
@@ -70,7 +70,9 @@ public abstract class MemberInfoBase<T extends PsiElement> {
|
||||
|
||||
public T getMember() {
|
||||
T element = myMember.getElement();
|
||||
PsiUtilCore.ensureValid(element);
|
||||
if (element != null) {
|
||||
PsiUtilCore.ensureValid(element);
|
||||
}
|
||||
return element;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user