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/08/29 06:06:40 UTC

[GitHub] aharui commented on issue #47: GoogleDepsWriter NullPointerException

aharui commented on issue #47: GoogleDepsWriter NullPointerException
URL: https://github.com/apache/royale-compiler/issues/47#issuecomment-416835363
 
 
   I altered one of the examples to add that line of code and it compiled without errors.
   
   GoogDepsWriter is going around looking for JS files for classes required by other JS files.  EventDispatcher (if it is org.apache.royale.events.EventDispatcher) should be in Core.swc, but if you referenced some other EventDispatcher and it was in your CreateJS.swc and there was no JS file for it, it could cause a problem in GoogDepsWriter, but I'm not sure it should have made a difference if you created the EventDispacher in the static initializer or not.  Referencing a class in a static initializer does affect GoogDepsWriter.  It will give priority when removing circulars to classes referenced in static initializers, but at some other point, it should have gone looking for EventDispatcher and successfully find it in Core.swc, or fail to find its JS file.

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