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 f89b413 Fix loop exit for loop target-type definition unknown check
f89b413 is described below
commit f89b41315960fd79694144e0a53fa3d4f2b69a35
Author: greg-dove <[email protected]>
AuthorDate: Tue Oct 15 12:28:23 2019 +1300
Fix loop exit for loop target-type definition unknown check
---
compiler/src/main/java/org/apache/royale/utils/ArrayLikeUtil.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/compiler/src/main/java/org/apache/royale/utils/ArrayLikeUtil.java
b/compiler/src/main/java/org/apache/royale/utils/ArrayLikeUtil.java
index 421a4b1..2919720 100644
--- a/compiler/src/main/java/org/apache/royale/utils/ArrayLikeUtil.java
+++ b/compiler/src/main/java/org/apache/royale/utils/ArrayLikeUtil.java
@@ -323,6 +323,8 @@ public class ArrayLikeUtil
if (targetType == null) {
if (left instanceof
IMemberAccessExpressionNode || left instanceof IDynamicAccessNode) {
left = ((IBinaryOperatorNode)
left).getLeftOperandNode();
+ } else {
+ left = null;
}
} else {
if (SemanticUtils.isXMLish(targetType,
project)) {