DisableBead should not access the strand until itâs added
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/99864a8c Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/99864a8c Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/99864a8c Branch: refs/heads/develop Commit: 99864a8cd3605a5030adbec67083f7de7865462b Parents: 26b15e5 Author: Harbs <ha...@in-tools.com> Authored: Sun Jun 25 12:36:47 2017 +0300 Committer: Harbs <ha...@in-tools.com> Committed: Sun Jun 25 12:36:47 2017 +0300 ---------------------------------------------------------------------- .../Basic/src/main/flex/org/apache/flex/html/beads/DisableBead.as | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/99864a8c/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DisableBead.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DisableBead.as b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DisableBead.as index 1d17477..2f8da88 100644 --- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DisableBead.as +++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DisableBead.as @@ -106,6 +106,8 @@ package org.apache.flex.html.beads private function updateHost():void { + if(!_strand)//bail out + return; COMPILE::SWF { var interactiveObject:InteractiveObject = _strand as InteractiveObject; interactiveObject.mouseEnabled = !disabled;