Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 28, 2020
1 parent 11f89da commit 5b35f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsruntimeprofiler.cpp
Expand Up @@ -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 )
Expand Down

0 comments on commit 5b35f5b

Please sign in to comment.