PY-19136: Returning null leads to NPE because #ensureValid is @NotNull

This commit is contained in:
Ilya.Kazakevich
2016-07-01 01:18:09 +03:00
parent bfa03fd230
commit 57d81d61e5
@@ -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;
}