EA-69932 - PIEAE: LeafPsiElement.invalid

This commit is contained in:
Dmitry Avdeev
2015-07-16 19:49:54 +03:00
parent 95c4f348b1
commit e0ee4a63a8
@@ -125,7 +125,7 @@ public class RunLineMarkerInfo extends LineMarkerInfo<PsiElement> {
@Nullable
@Override
public Object getData(@NonNls String dataId) {
if (Location.DATA_KEY.is(dataId)) return new PsiLocation<PsiElement>(myElement);
if (Location.DATA_KEY.is(dataId)) return myElement.isValid() ? new PsiLocation<PsiElement>(myElement) : null;
return myDelegate.getData(dataId);
}
}