EA-19707 - NPE: DFAMap.get

This commit is contained in:
Oleg Shpynov
2010-04-12 19:05:17 +04:00
parent 8672e72bd7
commit 41242cf95b
@@ -31,6 +31,9 @@ public class PyReachingDefsDfaInstance implements DfaMapInstance<ScopeVariable>
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);