Repository: flex-asjs Updated Branches: refs/heads/develop 2fdd7b9f3 -> 1302393fd
VerticalLayout now tests for null child (JS side). Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/1302393f Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/1302393f Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/1302393f Branch: refs/heads/develop Commit: 1302393fd8841a33a5150223b29dd88aed2fb1bb Parents: 2fdd7b9 Author: Peter Ent <[email protected]> Authored: Mon May 1 15:44:02 2017 -0400 Committer: Peter Ent <[email protected]> Committed: Mon May 1 15:44:02 2017 -0400 ---------------------------------------------------------------------- .../flex/org/apache/flex/html/beads/layouts/VerticalLayout.as | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1302393f/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/layouts/VerticalLayout.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/layouts/VerticalLayout.as b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/layouts/VerticalLayout.as index 16c81a0..670aede 100644 --- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/layouts/VerticalLayout.as +++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/layouts/VerticalLayout.as @@ -164,7 +164,8 @@ package org.apache.flex.html.beads.layouts n = children.length; for (i = 0; i < n; i++) { - var child:WrappedHTMLElement = children[i]; + var child:WrappedHTMLElement = children[i] as WrappedHTMLElement; + if (child == null) continue; child.flexjs_wrapper.setDisplayStyleForLayout('block'); if (child.style.display === 'none') {
