Fix a null dereference.
Fixes #486
This commit is contained in:
@@ -396,7 +396,7 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
|
|||||||
{
|
{
|
||||||
// if class is a closure code, ignore this tuple
|
// if class is a closure code, ignore this tuple
|
||||||
PycRef<ASTNode> tos = stack.top();
|
PycRef<ASTNode> tos = stack.top();
|
||||||
if (tos->type() == ASTNode::NODE_LOADBUILDCLASS) {
|
if (tos && tos->type() == ASTNode::NODE_LOADBUILDCLASS) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user