From 26edd8ac8ef6e97ea32850991e7ad684701dbdb0 Mon Sep 17 00:00:00 2001 From: Alessandro Pasotti Date: Fri, 16 Feb 2018 09:11:26 +0100 Subject: [PATCH] Check for application instance before calling init --- src/core/qgsapplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/qgsapplication.cpp b/src/core/qgsapplication.cpp index 205f289f16e..c77a884e065 100644 --- a/src/core/qgsapplication.cpp +++ b/src/core/qgsapplication.cpp @@ -989,7 +989,7 @@ QgsApplication::endian_t QgsApplication::endian() void QgsApplication::initQgis() { - if ( !ABISYM( mInitialized ) ) + if ( !ABISYM( mInitialized ) && QgsApplication::instance() ) { init( ABISYM( mProfilePath ) ); }