]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed crash when an item didn't have any data
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 25 Dec 2001 22:31:13 +0000 (22:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 25 Dec 2001 22:31:13 +0000 (22:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/treectrl.h

index b99a97724afaae67a8b78b84f2730f0fe07a3cdf..a9234253773a0e3026a3c46d70bdf1128e2d04f3 100644 (file)
@@ -439,7 +439,7 @@ private:
                              class wxTreeItemIndirectData *data);
     bool HasIndirectData(const wxTreeItemId& item) const;
     bool IsDataIndirect(wxTreeItemData *data) const
-        { return data->GetId().m_pItem == 0; }
+        { return data && data->GetId().m_pItem == 0; }
 
     // the hash storing the items attributes (indexed by items ids)
     wxHashTable m_attrs;