diff --git a/python/src/com/jetbrains/python/codeInsight/dataflow/PyReachingDefsDfaInstance.java b/python/src/com/jetbrains/python/codeInsight/dataflow/PyReachingDefsDfaInstance.java index 057824afae1d..ed9259c22158 100644 --- a/python/src/com/jetbrains/python/codeInsight/dataflow/PyReachingDefsDfaInstance.java +++ b/python/src/com/jetbrains/python/codeInsight/dataflow/PyReachingDefsDfaInstance.java @@ -31,6 +31,9 @@ public class PyReachingDefsDfaInstance implements DfaMapInstance return map; } final String name = rwInstruction.getName(); + if (name == null){ + return map; + } final ScopeVariable variable = map.get(name); // Parameter case final PsiElement parameterScope = ScopeUtil.getParameterScope(element);