if no children were created, return 0

Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/1f7c230b
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/1f7c230b
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/1f7c230b

Branch: refs/heads/develop
Commit: 1f7c230ba1db90edb58736e1e5c61ef3efe3d6f4
Parents: eef49ca
Author: Alex Harui <[email protected]>
Authored: Mon Dec 9 13:58:59 2013 -0800
Committer: Alex Harui <[email protected]>
Committed: Mon Dec 9 13:58:59 2013 -0800

----------------------------------------------------------------------
 .../org/apache/flex/ant/tags/supportClasses/ParentTagHandler.as    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/1f7c230b/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/ParentTagHandler.as
----------------------------------------------------------------------
diff --git 
a/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/ParentTagHandler.as 
b/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/ParentTagHandler.as
index f6c2941..81e6cc3 100644
--- a/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/ParentTagHandler.as
+++ b/ant_on_air/src/org/apache/flex/ant/tags/supportClasses/ParentTagHandler.as
@@ -44,6 +44,8 @@ package org.apache.flex.ant.tags.supportClasses
         
         public function get numChildren():int
         {
+            if (!children) return 0;
+            
             return children.length;
         }
     }

Reply via email to