From f27187f468a7ee8d7a1713c5aeb7e6675b80019d Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Thu, 28 Nov 2002 18:13:00 +0000 Subject: [PATCH] Applied patch from Ian Brown. Fixes coredump under Solaris. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/listbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/motif/listbox.cpp b/src/motif/listbox.cpp index 2107f2e894..d8b12adf8a 100644 --- a/src/motif/listbox.cpp +++ b/src/motif/listbox.cpp @@ -617,7 +617,7 @@ void wxListBoxCallback (Widget WXUNUSED(w), XtPointer clientData, event.SetString( item->GetString( n ) ); int x = -1; - if( cbs->event->type == ButtonRelease ) + if( NULL != cbs->event && cbs->event->type == ButtonRelease ) { XButtonEvent* evt = (XButtonEvent*)cbs->event;