PIEAE diagnostics (EA-38139 - PIEAE: PsiElementBase.getContainingFile)

This commit is contained in:
Dmitry Jemerov
2012-08-13 12:37:24 +02:00
parent 40928ff32b
commit 1156f2a6d6
@@ -206,6 +206,10 @@ public class PyReferenceExpressionImpl extends PyElementImpl implements PyRefere
if (target == this || target == null) {
continue;
}
if (!target.isValid()) {
LOG.error("Reference " + this + " resolved to invalid element " + target + " (text=" + target.getText() + ")");
continue;
}
type = getTypeFromTarget(target, context, this);
if (type != null) {
return type;