Skip to content

Commit 4f3661c

Browse files
committed
Fix potential NPE due to use of an uninitialized child node in LookupAttributeInMRONode
1 parent 0cf9bf9 commit 4f3661c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/attributes/LookupAttributeInMRONode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ protected Object lookupConstantMRO(@SuppressWarnings("unused") Object klass,
268268
@Specialization(replaces = {"lookupConstantMROCached", "lookupConstantMRO"})
269269
protected Object lookup(Object klass,
270270
@Cached("createForceType()") ReadAttributeFromObjectNode readAttrNode) {
271-
return lookupSlow(klass, key, getMroNode, readAttrNode, skipPythonClasses);
271+
return lookupSlow(klass, key, ensureGetMroNode(), readAttrNode, skipPythonClasses);
272272
}
273273

274274
protected GetMroStorageNode ensureGetMroNode() {

0 commit comments

Comments
 (0)