Skip to content

Commit

Permalink
fixed: R.get returning null
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielegenovese committed Jul 18, 2024
1 parent 31ee062 commit f471fe7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ast/Python3VisitorImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,10 @@ private void optimizeWithThird(BlockNode block, int lineStart, int lineStop, int
if (!al.isEmpty()) {
boolean constant = true;
for (String a : al) {
if (R.get(a) == null) {
constant = false;
break;
}
int n = R.get(a);
if (n > lineStart && n <= lineStop) {
constant = false;
Expand Down

0 comments on commit f471fe7

Please sign in to comment.