X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a67a93b17c37c018f60e662645ee2a44ba4e58e..c99d6f997c48ab79dd301ca18b7a66d260a99636:/src/mac/macnotfy.cpp?ds=inline diff --git a/src/mac/macnotfy.cpp b/src/mac/macnotfy.cpp index a47fce31e5..9d0a2a8346 100644 --- a/src/mac/macnotfy.cpp +++ b/src/mac/macnotfy.cpp @@ -8,6 +8,9 @@ */ #include "wx/wx.h" + +#include "wx/mac/private.h" + #include "wx/mac/macnotfy.h" const short kMaxEvents = 1000 ; @@ -74,6 +77,7 @@ void wxMacAddEvent( short wakeUp ) { wxMacNotificationEvents *e = (wxMacNotificationEvents *) table ; + wxASSERT_MSG( handler != NULL , "illegal notification proc ptr" ) ; /* this should be protected eventually */ short index = e->top++ ; @@ -125,7 +129,8 @@ void wxMacProcessNotifierEvents() gMacNotificationEvents.events[index] = NULL ; gMacNotificationEvents.proc[index] = NULL ; - handler( event , data ) ; + if ( handler ) + handler( event , data ) ; } gInProcessing = false ; }