This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit b457f073220801fb3ff0ee6f46d0a0f84cabd084
Author: Alex Harui <aha...@apache.org>
AuthorDate: Thu Apr 12 15:49:13 2018 -0700

    handle objects being removed from stage in earlier event
---
 mustella/src/main/royale/DispatchMouseClickEvent.as | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mustella/src/main/royale/DispatchMouseClickEvent.as 
b/mustella/src/main/royale/DispatchMouseClickEvent.as
index d8f6837..5137b6f 100644
--- a/mustella/src/main/royale/DispatchMouseClickEvent.as
+++ b/mustella/src/main/royale/DispatchMouseClickEvent.as
@@ -123,6 +123,7 @@ public class DispatchMouseClickEvent extends TestStep
         
                if (actualTarget is DisplayObjectContainer)
                {
+            if (!actualTarget.stage) return; // was removed from stage
                        var targets:Array = 
actualTarget.stage.getObjectsUnderPoint(stagePt);
                        var arr:Array = 
UnitTester.getObjectsUnderPoint(DisplayObject(actualTarget), stagePt);
                        targets = targets.concat(arr);

-- 
To stop receiving notification emails like this one, please contact
aha...@apache.org.

Reply via email to