Check for null pointers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2006-05-23 20:32:00 +00:00
parent bec3b0ddef
commit 25e19bdf01

View File

@ -1056,6 +1056,13 @@ void MyPanel::OnIdle(wxIdleEvent& event)
static const int INVALID_SELECTION = -2;
static int s_selCombo = INVALID_SELECTION;
if (!m_combo || !m_choice)
{
event.Skip();
return;
}
int sel = m_combo->GetSelection();
if ( sel != s_selCombo )
{