Skip to content

Commit

Permalink
Fix eval cannot read null properties error when the variable is not f…
Browse files Browse the repository at this point in the history
…ound
  • Loading branch information
yuxiaomao committed Mar 20, 2024
1 parent face892 commit fd12872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hld/Eval.hx
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ class Eval {
return v;
}
var v = getGlobalAddress(path);
if( v == null ) throw "Unknown value "+path.join(".");
if( v == null || v == ANone ) throw "Unknown value "+path.join(".");
return fetchAddr(v);
}

Expand Down

0 comments on commit fd12872

Please sign in to comment.