From f471fe7f0f240d1785643fe13e9a7c6e6566c443 Mon Sep 17 00:00:00 2001 From: geno Date: Thu, 18 Jul 2024 13:42:15 +0200 Subject: fixed: R.get returning null --- src/ast/Python3VisitorImpl.java | 4 ++++ 1 file changed, 4 insertions(+) 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 { 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; -- cgit v1.2.3-18-g5258