*** qwineventnotifier.cpp 2018-08-28 20:53:29.239962200 +0200 --- qwineventnotifier.cpp 2018-08-28 21:28:49.659942200 +0200 *************** static void CALLBACK wfsoCallback(void * *** 256,261 **** --- 256,270 ---- { QWinEventNotifierPrivate *nd = reinterpret_cast(context); QAbstractEventDispatcher *eventDispatcher = nd->threadData->eventDispatcher.load(); + + // Happens when Q(Core)Application is destroyed before QWinEventNotifier. + // https://bugreports.qt.io/browse/QTBUG-70214 + if (!eventDispatcher) + { + qWarning("QWinEventNotifier: eventDispatcher was null in wfsoCallback"); + return; + } + QEventDispatcherWin32Private *edp = QEventDispatcherWin32Private::get( static_cast(eventDispatcher));