Commit 4e7ec931 authored by Stefan Behnel's avatar Stefan Behnel

fix compiler crash

parent 1bbe3016
......@@ -4851,7 +4851,7 @@ class PyMethodCallNode(SimpleCallNode):
# not an attribute itself, but might have been assigned from one (e.g. bound method)
for assignment in self.function.cf_state:
value = assignment.rhs
if value.is_attribute and value.obj.type.is_pyobject:
if value and value.is_attribute and value.obj.type.is_pyobject:
if attribute_is_likely_bound_method(value):
likely_method = 'likely'
break
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment