I suspect the problem is here:
https://github.com/apache/royale-asjs/blob/d6eaf0ad1e2a621d27ec8fbde52a5097d7f49498/frameworks/projects/MXRoyale/src/main/royale/mx/managers/SystemManager.as#L527

Pashmina, Please try to do a better job of documenting what you are doing. If 
you make a significant change, you should discuss it on the list. I have no 
idea why you you added stage — especially since it always returns null.

Also, please try to be better about not committing non-functional code, or if 
you must, at least document it. I see a number of code blocks in your latest 
commits which do not actually serve a functional purpose. (i.e. keyLocation, 
stage (above), not sure about titleIcon)

Thanks,
Harbs

> On Sep 17, 2021, at 10:17 AM, Yishay Weiss <yishayj...@hotmail.com> wrote:
> 
> Rolling back to 458422fda1652198b03a4e03ae39117ba519e7df fixes it. All 
> commits since then except one were done by 
> @pashminak...@gmail.com<mailto:pashminak...@gmail.com>. 
> @pashminak...@gmail.com<mailto:pashminak...@gmail.com>, can you please debug 
> this? If you are unsure how to debug this you can simply rollback to various 
> commits since 458422fda1652198b03a4e03ae39117ba519e7df , run mxtests, and see 
> which commit is responsible for the failure.
> 
> To run mxtests, simply run ‘ant mxtests’ from royale-asjs
> 
> Let us know if you need guidance.
> 
> Thanks.
> 
> From: Edward Stangler<mailto:estang...@bradmark.com>
> Sent: Thursday, September 16, 2021 3:39 AM
> To: dev@royale.apache.org<mailto:dev@royale.apache.org>
> Subject: Error in SWF mxtests
> 
> With latest everything, fresh everything, getting an error in SWF side of 
> mxtests:
> 
> ant mxtests
> 
> TypeError: Error #1009: Cannot access a property or method of a null object 
> reference.
>    at 
> UnitTester$/init()[c:\somewhere\royale-asjs\mustella\src\main\royale\UnitTester.as:321]
>    at 
> mx.managers::SystemManager/kickOff()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2821]
>    at 
> mx.managers::SystemManager/docFrameHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2724]
>    at flash.display::MovieClip/nextFrame()
>    at 
> mx.managers::SystemManager/nextFrameTimerHandler()[/org/apache/royale/0.9.9/mx/managers/SystemManager.as:2952]
>    at flash.utils::Timer/_timerDispatch()
>    at flash.utils::Timer/tick()
> 
> The error happens on this line:
> 
>        else if(root.parent != root.stage && root.loaderInfo.applicationDomain 
> != root.parent.parent.loaderInfo.applicationDomain)
> 
> Because root.parent.parent is null.
> 
> Anybody else getting this?  Dunno what changed;  don't think this was 
> happening a few months ago.
> 

Reply via email to