forked from qt-creator/qt-creator
Fix possible nullptr access
Change-Id: I89555a9ac6cd06f7c902893f40e1e3757b14f971 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -237,7 +237,8 @@ void AxivionPluginPrivate::handleProjectInfo(const ProjectInfo &info)
|
||||
return;
|
||||
|
||||
// handle already opened documents
|
||||
if (!ProjectExplorer::SessionManager::startupBuildSystem()->isParsing()) {
|
||||
if (auto buildSystem = ProjectExplorer::SessionManager::startupBuildSystem();
|
||||
!buildSystem || !buildSystem->isParsing()) {
|
||||
handleOpenedDocs(nullptr);
|
||||
} else {
|
||||
connect(ProjectExplorer::SessionManager::instance(),
|
||||
|
||||
Reference in New Issue
Block a user