Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoid crash if profile selector dialog is closed without selecting a …
…profile
  • Loading branch information
nyalldawson committed Apr 27, 2023
1 parent f298fde commit a73f972
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/qgsapplication.cpp
Expand Up @@ -505,7 +505,8 @@ void QgsApplication::installTranslators()

QgsApplication::~QgsApplication()
{
mApplicationMembers->mSettingsRegistryCore->backwardCompatibility();
if ( mApplicationMembers )
mApplicationMembers->mSettingsRegistryCore->backwardCompatibility();

delete mDataItemProviderRegistry;
delete mApplicationMembers;
Expand Down

0 comments on commit a73f972

Please sign in to comment.