X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/df21920b800cf87bce324de8a2f2aef878fbbf80..ac55e6b01ed16aa52eae867bc4fe3fb864c6c4f6:/src/unix/sockunix.cpp?ds=sidebyside diff --git a/src/unix/sockunix.cpp b/src/unix/sockunix.cpp index c50debc326..51a158cab6 100644 --- a/src/unix/sockunix.cpp +++ b/src/unix/sockunix.cpp @@ -107,6 +107,9 @@ wxSocketError wxSocketImplUnix::GetLastError() const void wxSocketImplUnix::DoEnableEvents(int flags, bool enable) { wxSocketManager * const manager = wxSocketManager::Get(); + if (!manager) + return; + if ( enable ) { if ( flags & wxSOCKET_INPUT_FLAG )