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/14 23:22:17 UTC

[GitHub] jgranick opened a new issue #234: Calling a class `Entry` results in a NullPointerException

jgranick opened a new issue #234: Calling a class `Entry` results in a NullPointerException
URL: https://github.com/apache/royale-asjs/issues/234
 
 
   The pattern was simply:
   
   ```as3
   package {
       public class Entry {
           public function Entry {
               new App ();
           }
       }
   }
   
   ...
   
   package {
       import openfl.display.Sprite;
       public class App extends Sprite {
           public function App {
               super ();
               ...
           }
       }
   }
   ```
   
   Here's some of the output:
   
   ```
   using SWC: /home/joshua/Development/ActionScript/openfl-samples-as3/features/display/DisplayingABitmap/node_modules/@apache-royale/royale-js/royale-asjs/js/libs/js.swc
   using SWC: /home/joshua/Development/ActionScript/openfl-samples-as3/features/display/DisplayingABitmap/node_modules/openfl/dist/openfl.swc
   using SWC: /home/joshua/Development/ActionScript/openfl-samples-as3/features/display/DisplayingABitmap/node_modules/@apache-royale/royale-js/royale-asjs/frameworks/js/libs/LanguageJS.swc
   using SWC: /home/joshua/Development/ActionScript/openfl-samples-as3/features/display/DisplayingABitmap/node_modules/@apache-royale/royale-js/royale-asjs/js/libs/GCL.swc
   Internal error: java.lang.NullPointerException org.apache.royale.compiler.internal.graph.GoogDepsWriter.sortFunction(GoogDepsWriter.java:256)org.apache.royale.compiler.internal.graph.GoogDepsWriter.sort(GoogDepsWriter.java:230)org.apache.royale.compiler.internal.graph.GoogDepsWriter.getListOfFiles(GoogDepsWriter.java:94)org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyalePublisher.publish(MXMLRoyalePublisher.java:349)org.apache.royale.compiler.clients.MXMLJSCNative.compile(MXMLJSCNative.java:376)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)
   ```
   
   Renaming `Entry.as` to `Main.as` (and updating the entry point in our build configuration accordingly) removed the error and the build completed

----------------------------------------------------------------
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