X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ef74b15f769a43096fbd590e804caef53977701..c4c6ada95378f28f1217bca3711f1161e94705eb:/src/common/pickerbase.cpp diff --git a/src/common/pickerbase.cpp b/src/common/pickerbase.cpp index 3d09e22d11..867712afbf 100644 --- a/src/common/pickerbase.cpp +++ b/src/common/pickerbase.cpp @@ -134,7 +134,8 @@ void wxPickerBase::DoSetToolTip(wxToolTip *tip) m_picker->SetToolTip(tip); // do a copy as wxWindow will own the pointer we pass - m_text->SetToolTip(tip ? new wxToolTip(tip->GetTip()) : NULL); + if ( m_text ) + m_text->SetToolTip(tip ? new wxToolTip(tip->GetTip()) : NULL); } #endif // wxUSE_TOOLTIPS