You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2018/05/25 18:43:39 UTC

[GitHub] jgranick opened a new issue #251: NullPointerException compiling custom ActionScript namespace

jgranick opened a new issue #251: NullPointerException compiling custom ActionScript namespace
URL: https://github.com/apache/royale-asjs/issues/251
 
 
   A NullPointerException is thrown when compiling the custom `starling.core.starling_internal` namespace
   
   Error output:
   
   ```
   Compiling file: /home/joshua/Projects/Samples/StarlingAS3Test/bin/js-debug/starling/core/starling_internal.js
   Internal error: java.lang.NullPointerException org.apache.royale.compiler.internal.codegen.as.ASBeforeNodeStrategy.handle(ASBeforeNodeStrategy.java:47)org.apache.royale.compiler.internal.visitor.as.BeforeAfterStrategy.before(BeforeAfterStrategy.java:139)org.apache.royale.compiler.internal.visitor.as.BeforeAfterStrategy.handle(BeforeAfterStrategy.java:109)org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.walk(ASBlockWalker.java:157)org.apache.royale.compiler.internal.codegen.js.royale.JSRoyaleEmitter.emitNamespace(JSRoyaleEmitter.java:479)org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.visitNamespace(ASBlockWalker.java:309)org.apache.royale.compiler.internal.visitor.as.ASNodeSwitch.handle(ASNodeSwitch.java:166)org.apache.royale.compiler.internal.visitor.as.ASNodeHandler.handle(ASNodeHandler.java:85)org.apache.royale.compiler.internal.visitor.as.BeforeAfterStrategy.handle(BeforeAfterStrategy.java:110)org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.walk(ASBlockWalker.java:157)org.apache.royale.compiler.internal.codegen.js.goog.JSGoogEmitter.emitPackageContents(JSGoogEmitter.java:215)org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.visitPackage(ASBlockWalker.java:230)org.apache.royale.compiler.internal.visitor.as.ASNodeSwitch.handle(ASNodeSwitch.java:132)org.apache.royale.compiler.internal.visitor.as.ASNodeHandler.handle(ASNodeHandler.java:85)org.apache.royale.compiler.internal.visitor.as.BeforeAfterStrategy.handle(BeforeAfterStrategy.java:110)org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.walk(ASBlockWalker.java:157)org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.visitFile(ASBlockWalker.java:209)org.apache.royale.compiler.internal.visitor.as.ASNodeSwitch.handle(ASNodeSwitch.java:128)org.apache.royale.compiler.internal.visitor.as.ASNodeHandler.handle(ASNodeHandler.java:85)org.apache.royale.compiler.internal.visitor.as.BeforeAfterStrategy.handle(BeforeAfterStrategy.java:110)org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.walk(ASBlockWalker.java:157)org.apache.royale.compiler.internal.codegen.as.ASBlockWalker.visitCompilationUnit(ASBlockWalker.java:174)org.apache.royale.compiler.internal.codegen.js.JSWriter.writeTo(JSWriter.java:98)org.apache.royale.compiler.clients.MXMLJSCNative.compile(MXMLJSCNative.java:366)org.apache.royale.compiler.clients.MXMLJSCNative._mainNoExit(MXMLJSCNative.java:234)org.apache.royale.compiler.clients.MXMLJSCNative.mainNoExit(MXMLJSCNative.java:191)org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:381)org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:281)org.apache.royale.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:240)org.apache.royale.compiler.clients.MXMLJSC.main(MXMLJSC.java:222)
   ```
   
   Test code:
   
   ```
   git clone https://github.com/openfl/openfl
   cd openfl
   npm install && npm link && npm run build -s
   
   cd ..
   
   git clone -b bug-3 https://github.com/jgranick/StarlingAS3Test
   cd StarlingAS3Test
   npm install && npm link openfl && npm run build -s
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services