X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a7b15169f9e27a66a224ac707bea3024612dd3ea..02b51ae521db06ef12a3c2a37a5378a9f715e707:/src/common/pickerbase.cpp diff --git a/src/common/pickerbase.cpp b/src/common/pickerbase.cpp index 0176c2a2a8..cccaabc42e 100644 --- a/src/common/pickerbase.cpp +++ b/src/common/pickerbase.cpp @@ -149,7 +149,7 @@ void wxPickerBase::OnTextCtrlKillFocus(wxFocusEvent& event) event.Skip(); // don't leave the textctrl empty - if (m_text->GetValue().empty()) + if (m_text && m_text->GetValue().empty()) UpdateTextCtrlFromPicker(); }