host may not be an IContainer
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/23f1b84f Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/23f1b84f Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/23f1b84f Branch: refs/heads/develop Commit: 23f1b84f4d26016998ec5859730702cfb604bb9e Parents: b1f6056 Author: Justin Mclean <[email protected]> Authored: Fri May 26 09:29:11 2017 +1000 Committer: Justin Mclean <[email protected]> Committed: Fri May 26 09:29:11 2017 +1000 ---------------------------------------------------------------------- .../src/main/flex/org/apache/flex/html/beads/ContainerView.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/23f1b84f/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/ContainerView.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/ContainerView.as b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/ContainerView.as index ac723a9..fa86d6b 100644 --- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/ContainerView.as +++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/ContainerView.as @@ -382,7 +382,7 @@ package org.apache.flex.html.beads // add the viewport's contentView to this host ONLY if // the contentView is not the host itself, which is likely // most situations. - if (chost != viewport.contentView) { + if (chost != null && chost != viewport.contentView) { chost.addElement(viewport.contentView); } }
