From: Bryan Petty Date: Tue, 27 Jan 2009 17:42:42 +0000 (+0000) Subject: Forward ported r58463. (Check for null text control in wxPickerBase fixing a focus... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bb4b11a2199e69d0d7797af69d25aa77b9519a54 Forward ported r58463. (Check for null text control in wxPickerBase fixing a focus event crash on control deletion on OSX 10.5 that will need to eventually be fixed, but this should be done anyway, and at least fixes wxFilePickerCtrl for now.) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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(); }