ProjectExplorer: Assert a build config when retrieving install step

Some safety net for the future, triggered by the referenced task
which was already properly fixed by 01cc0e7499.

Task-number: QTCREATORBUG-32064
Change-Id: If1d79a2ad6fa7dc208952528ed674523d1aaceb8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2024-11-27 06:27:01 +01:00
parent 3ac6a5956d
commit 083db7c5cf

View File

@@ -242,6 +242,7 @@ ExtraCompiler *BuildSystem::extraCompilerForTarget(const Utils::FilePath &target
MakeInstallCommand BuildSystem::makeInstallCommand(const FilePath &installRoot) const MakeInstallCommand BuildSystem::makeInstallCommand(const FilePath &installRoot) const
{ {
QTC_ASSERT(target()->project()->hasMakeInstallEquivalent(), return {}); QTC_ASSERT(target()->project()->hasMakeInstallEquivalent(), return {});
QTC_ASSERT(buildConfiguration(), return {});
BuildStepList *buildSteps = buildConfiguration()->buildSteps(); BuildStepList *buildSteps = buildConfiguration()->buildSteps();
QTC_ASSERT(buildSteps, return {}); QTC_ASSERT(buildSteps, return {});