From 41242cf95bc347dfb6ebe516265fbaaace5831ae Mon Sep 17 00:00:00 2001 From: Oleg Shpynov Date: Mon, 12 Apr 2010 19:05:17 +0400 Subject: [PATCH] EA-19707 - NPE: DFAMap.get --- .../python/codeInsight/dataflow/PyReachingDefsDfaInstance.java | 3 +++ 1 file changed, 3 insertions(+) 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);