diff options
-rw-r--r-- | src/geniviextras/qdltregistration.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/geniviextras/qdltregistration.cpp b/src/geniviextras/qdltregistration.cpp index 8f2f080..091d201 100644 --- a/src/geniviextras/qdltregistration.cpp +++ b/src/geniviextras/qdltregistration.cpp @@ -473,6 +473,9 @@ void QDltRegistration::unregisterApplication() */ void QDltRegistration::messageHandler(QtMsgType msgType, const QMessageLogContext &msgCtx, const QString &msg) { + if (!globalDltRegistration()) + return; + QMutexLocker l(&globalDltRegistration()->d_ptr->m_mutex); DltContext *dltCtx = globalDltRegistration()->d_ptr->context(msgCtx.category); |