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;
|
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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user