X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/502a2b1810943f9a446a16e73ef780321eb69a06..59840ba3b16e4baf3228dd79c6b7ae40b55cf488:/include/wx/msw/treectrl.h diff --git a/include/wx/msw/treectrl.h b/include/wx/msw/treectrl.h index b99a97724a..a923425377 100644 --- a/include/wx/msw/treectrl.h +++ b/include/wx/msw/treectrl.h @@ -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;