NPE fixed
This commit is contained in:
@@ -38,7 +38,9 @@ class JetSimpleNameReference extends JetPsiReference {
|
||||
|
||||
@Override
|
||||
public TextRange getRangeInElement() {
|
||||
return new TextRange(0, getElement().getTextLength());
|
||||
PsiElement element = getElement();
|
||||
if (element == null) return null;
|
||||
return new TextRange(0, element.getTextLength());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user