diff options
Diffstat (limited to 'src/geniviextras/qdltregistration.cpp')
-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 47abe21..d8dccdc 100644 --- a/src/geniviextras/qdltregistration.cpp +++ b/src/geniviextras/qdltregistration.cpp @@ -55,6 +55,9 @@ QT_BEGIN_NAMESPACE void qtGeniviLogLevelChangedHandler(char context_id[], uint8_t log_level, uint8_t trace_status) { + if (!globalDltRegistration()) + return; + auto d = globalDltRegistration()->d_ptr; d->m_mutex.lock(); const QLoggingCategory *category = d->dltLogLevelChanged(context_id, log_level, trace_status); |