I'm not sure how a DisplayObjectContainer has a null child, but I'm seeing it.

Cope.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@366 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Ray Greenwell
2007-12-05 21:17:36 +00:00
parent 4845965208
commit fdd85f3c2b
@@ -217,6 +217,10 @@ public class DisplayUtil
private static function findInHierarchy0 (
obj :DisplayObject, name :String, shallow :Boolean, maxDepth :int, curDepth :int = 0) :Array
{
if (obj == null) {
return null;
}
var bestResult :Array;
if (obj.name == name) {
if (shallow) {