diff options
author | geno <gabriele.genovese2@studio.unibo.it> | 2024-07-18 13:42:15 +0200 |
---|---|---|
committer | geno <gabriele.genovese2@studio.unibo.it> | 2024-07-18 13:42:15 +0200 |
commit | f471fe7f0f240d1785643fe13e9a7c6e6566c443 (patch) | |
tree | 8a237f12914c75a04c2c4a68bc19284083ddd858 | |
parent | 31ee062ad12adcf6dae6716cb566fcbcde9f6959 (diff) |
fixed: R.get returning null
-rw-r--r-- | src/ast/Python3VisitorImpl.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ast/Python3VisitorImpl.java b/src/ast/Python3VisitorImpl.java index 7e8881f..66f282e 100644 --- a/src/ast/Python3VisitorImpl.java +++ b/src/ast/Python3VisitorImpl.java @@ -528,6 +528,10 @@ public class Python3VisitorImpl extends Python3ParserBaseVisitor<Node> { 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; |