You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2022/07/11 22:49:02 UTC
[royale-compiler] branch develop updated: Avoid null reference errors for scope which can occur with some xml-ish lookups.
This is an automated email from the ASF dual-hosted git repository.
gregdove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/develop by this push:
new 3eff216da Avoid null reference errors for scope which can occur with some xml-ish lookups.
3eff216da is described below
commit 3eff216daaab919220b83f2589c82b420de238cb
Author: greg-dove <gr...@gmail.com>
AuthorDate: Tue Jul 12 10:23:43 2022 +1200
Avoid null reference errors for scope which can occur with some xml-ish lookups.
---
.../org/apache/royale/compiler/internal/tree/as/ExpressionNodeBase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/ExpressionNodeBase.java b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/ExpressionNodeBase.java
index 8afeb80e2..4567d4fcd 100644
--- a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/ExpressionNodeBase.java
+++ b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/as/ExpressionNodeBase.java
@@ -241,7 +241,7 @@ public abstract class ExpressionNodeBase extends FixedChildrenNode implements IE
{
ASScope scope = getASScope();
- if (scope.isPackageName(ref))
+ if (scope != null && scope.isPackageName(ref))
isPackage = true;
}
}