This is an automated email from the ASF dual-hosted git repository. joshtynjala pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
commit 820dabd50813588bf27f3e93a876e30521781bfe Author: Josh Tynjala <[email protected]> AuthorDate: Mon Jun 10 09:09:47 2024 -0700 MethodBodySemanticChecker: fix null reference exception checking IASNode source path value --- .../royale/compiler/internal/semantics/MethodBodySemanticChecker.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/semantics/MethodBodySemanticChecker.java b/compiler/src/main/java/org/apache/royale/compiler/internal/semantics/MethodBodySemanticChecker.java index d0a0801e1..4eeceb957 100644 --- a/compiler/src/main/java/org/apache/royale/compiler/internal/semantics/MethodBodySemanticChecker.java +++ b/compiler/src/main/java/org/apache/royale/compiler/internal/semantics/MethodBodySemanticChecker.java @@ -2147,7 +2147,8 @@ public class MethodBodySemanticChecker ); } - while (iNode.getSourcePath().contains("compiler-jx") && + while (iNode.getSourcePath() != null && + iNode.getSourcePath().contains("compiler-jx") && iNode.getSourcePath().contains("config.as")) { iNode = iNode.getParent();
