cmake: Crash when removing

Fix nullpointer error. Occurs when no active project exists

Task-number: QTCREATORBUG-18865
Change-Id: I826daac39c38ae1382d23cae20da9085dbcfe298
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Daniel Trevitz
2017-09-07 10:28:47 -04:00
committed by Tobias Hunger
parent 47886969cc
commit b5379d599f

View File

@@ -481,7 +481,7 @@ CMakeBuildStepConfigWidget::CMakeBuildStepConfigWidget(CMakeBuildStep *buildStep
});
connect(m_buildStep->project(), &Project::activeProjectConfigurationChanged,
this, [this](ProjectConfiguration *pc) {
if (pc->isActive())
if (pc && pc->isActive())
updateDetails();
});
}