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 26edd8a
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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.