You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2021/04/26 17:34:24 UTC
[royale-compiler] branch develop updated: MXMLTreeBuilder: fix null
pointer exception in parseValue() when the type is not known (closes
apache/royale-asjs#1096) (closes #170)
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
The following commit(s) were added to refs/heads/develop by this push:
new ed2e93e MXMLTreeBuilder: fix null pointer exception in parseValue() when the type is not known (closes apache/royale-asjs#1096) (closes #170)
ed2e93e is described below
commit ed2e93ef166e2d553692648bc4c739ced1a7df62
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Mon Apr 26 10:33:51 2021 -0700
MXMLTreeBuilder: fix null pointer exception in parseValue() when the type is not known (closes apache/royale-asjs#1096) (closes #170)
---
.../apache/royale/compiler/internal/tree/mxml/MXMLTreeBuilder.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLTreeBuilder.java b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLTreeBuilder.java
index a054f32..1b37da7 100644
--- a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLTreeBuilder.java
+++ b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLTreeBuilder.java
@@ -353,7 +353,10 @@ public class MXMLTreeBuilder
{
Object result = null;
- String typeName = type.getQualifiedName();
+ String typeName = IASLanguageConstants.ANY_TYPE;
+ if (type != null) {
+ typeName = type.getQualifiedName();
+ }
if (typeName.equals(IASLanguageConstants.Boolean))
{