apache / royale-compiler

Apache Royale Compiler
https://royale.apache.org/
Apache License 2.0
95 stars 49 forks source link

Error: Unexpected exception 'java.lang.NullPointerException' at MXMLTreeBuilder.parseValue:356 #170

Closed pashminakazi closed 3 years ago

pashminakazi commented 3 years ago

I was compiling my project I got this exception then I again reclone SDK and compile asjs, compiler, and typedefs again and then compile my application but still issue exist, what's the reason for this exception? Error: Unexpected exception 'java.lang.NullPointerException' at org.apache.royale.compiler.internal.tree.mxml.MXMLTreeBuilder.parseValue:356 image

In Royale-Compiler org.apache.royale.compiler.internal.tree.mxml.MXMLTreeBuilder.java there is a function named parseValue In Which there is a line String typeName = type.getQualifiedName(); which is on line 356

aharui commented 3 years ago

Some MXML tag in that file is not being found. Either put the compiler in the Java debugger, or comment out various parts of the MXML file until you figure out which tag(s) are the problem.