Skip to content
Permalink
Browse files

Check for application instance before calling init

  • Loading branch information
elpaso committed Feb 16, 2018
1 parent f1f1c3d commit 26edd8ac8ef6e97ea32850991e7ad684701dbdb0
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 ) );
}

0 comments on commit 26edd8a

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