Skip to content

Commit

Permalink
Fix a null dereference.
Browse files Browse the repository at this point in the history
Fixes #486
  • Loading branch information
zrax committed Aug 6, 2024
1 parent cb32b58 commit 48d1bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ASTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
{
// if class is a closure code, ignore this tuple
PycRef<ASTNode> tos = stack.top();
if (tos->type() == ASTNode::NODE_LOADBUILDCLASS) {
if (tos && tos->type() == ASTNode::NODE_LOADBUILDCLASS) {
break;
}

Expand Down

0 comments on commit 48d1bfa

Please sign in to comment.