Index: dogtail/tree.py
===================================================================
RCS file: /cvs/gnome/dogtail/dogtail/tree.py,v
retrieving revision 1.27
diff -u -p -r1.27 tree.py
--- dogtail/tree.py	17 Apr 2006 06:18:54 -0000	1.27
+++ dogtail/tree.py	16 Jun 2006 22:23:20 -0000
@@ -458,7 +458,9 @@ class Node:
             if self.__hideChildren: return
             children = []
             for i in xrange (self.__accessible.getChildCount ()):
-                children.append (Node (self.__accessible.getChildAtIndex (i)))
+                a = self.__accessible.getChildAtIndex (i)
+                if a:
+                    children.append (Node (a))
             # Attributes from the Hypertext object
             if self.__hypertext:
                 for i in range(self.__hypertext.getNLinks()):
