Fix possible nullptr access

Change-Id: I89555a9ac6cd06f7c902893f40e1e3757b14f971
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2023-01-12 09:52:24 +01:00
parent 6221871b2f
commit 0056df7584

View File

@@ -237,7 +237,8 @@ void AxivionPluginPrivate::handleProjectInfo(const ProjectInfo &info)
return; return;
// handle already opened documents // handle already opened documents
if (!ProjectExplorer::SessionManager::startupBuildSystem()->isParsing()) { if (auto buildSystem = ProjectExplorer::SessionManager::startupBuildSystem();
!buildSystem || !buildSystem->isParsing()) {
handleOpenedDocs(nullptr); handleOpenedDocs(nullptr);
} else { } else {
connect(ProjectExplorer::SessionManager::instance(), connect(ProjectExplorer::SessionManager::instance(),