diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp index afbfa5af0a37..234edb7377db 100644 --- a/src/app/qgisapp.cpp +++ b/src/app/qgisapp.cpp @@ -5644,7 +5644,7 @@ void QgisApp::fileOpenAfterLaunch() } // Is this a storage based project? - const bool projectIsFromStorage { QgsApplication::instance()->projectStorageRegistry()->projectStorageFromUri( projPath ) }; + const bool projectIsFromStorage { QgsApplication::instance()->projectStorageRegistry()->projectStorageFromUri( projPath ) != nullptr }; if ( !projectIsFromStorage && !projPath.endsWith( QLatin1String( ".qgs" ), Qt::CaseInsensitive ) &&