From 96134e5341cc37d9cd31ea010551de4953b57623 Mon Sep 17 00:00:00 2001 From: Bryan Petty Date: Tue, 27 Jan 2009 17:39:50 +0000 Subject: [PATCH] Check for null text control in wxPickerBase fixing a focus event crash on control deletion 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/branches/WX_2_8_BRANCH@58463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/pickerbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }