This is an automated email from the ASF dual-hosted git repository. aharui 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 7cbe411 try to get better error handling for a reported NPE 7cbe411 is described below commit 7cbe411589369cf96fd5226225584aae8d1d5ddf Author: Alex Harui <aha...@apache.org> AuthorDate: Mon Aug 6 09:15:49 2018 -0700 try to get better error handling for a reported NPE --- .../compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java b/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java index 6f5fef9..9ad5f6d 100644 --- a/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java +++ b/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/MXMLClassDirectiveProcessor.java @@ -159,6 +159,7 @@ import org.apache.royale.compiler.internal.tree.as.NodeBase; import org.apache.royale.compiler.internal.tree.as.VariableNode; import org.apache.royale.compiler.mxml.IMXMLLanguageConstants; import org.apache.royale.compiler.mxml.IMXMLTypeConstants; +import org.apache.royale.compiler.problems.AccessUndefinedPropertyProblem; import org.apache.royale.compiler.problems.CSSCodeGenProblem; import org.apache.royale.compiler.problems.ICompilerProblem; import org.apache.royale.compiler.problems.MXMLExecutableStatementsInScriptBlockProblem; @@ -3670,6 +3671,10 @@ public class MXMLClassDirectiveProcessor extends ClassDirectiveProcessor context.stopUsing(IL.PROPERTIES, 1); } + else if (propDef == null) + { + getProblems().add(new AccessUndefinedPropertyProblem(propertyNode, propertyName)); + } else if (propDef.isPublic()) { context.startUsing(IL.PROPERTIES);