mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PIEAE diagnostics (EA-38139 - PIEAE: PsiElementBase.getContainingFile)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user