]> git.saurik.com Git - wxWidgets.git/commitdiff
Prevent using a bad tree item.
authorRobin Dunn <robin@alldunn.com>
Sat, 18 Feb 2006 21:40:57 +0000 (21:40 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 18 Feb 2006 21:40:57 +0000 (21:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/py/filling.py

index 56b6c7cf418246c021ac282d9473113efcd8b15f..28714bd6a54bb10c3f4bcb01b547f5413fd89076 100644 (file)
@@ -159,6 +159,8 @@ class FillingTree(wx.TreeCtrl):
 
     def display(self):
         item = self.item
+        if not item:
+            return
         if self.IsExpanded(item):
             self.addChildren(item)
         self.setText('')