Skip to content
Permalink
Browse files

Fix crash

  • Loading branch information
nyalldawson committed Jun 28, 2020
1 parent 11f89da commit 5b35f5ba8dca038bea5529e8854aa2f0bf169413
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsruntimeprofiler.cpp
@@ -167,7 +167,7 @@ QgsRuntimeProfiler *QgsRuntimeProfiler::threadLocalInstance()
static QThreadStorage<QgsRuntimeProfiler> sInstances;
QgsRuntimeProfiler *profiler = &sInstances.localData();

if ( profiler->thread() == qApp->thread() )
if ( !qApp || profiler->thread() == qApp->thread() )
sMainProfiler = profiler;

if ( !profiler->mInitialized )

0 comments on commit 5b35f5b

Please sign in to comment.
You can’t perform that action at this time.