forked from qt-creator/qt-creator
QMakeStep: Prevent possible crash
Task-number: QTCREATORBUG-15443 Change-Id: Ibec61938a911e7265fa1f12c4f3c7b60bf514b7c Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -745,9 +745,10 @@ BuildConfiguration *QmakeBuildConfigurationFactory::restore(Target *parent, cons
|
|||||||
|
|
||||||
BuildConfiguration::BuildType QmakeBuildConfiguration::buildType() const
|
BuildConfiguration::BuildType QmakeBuildConfiguration::buildType() const
|
||||||
{
|
{
|
||||||
|
QMakeStep *qs = qmakeStep();
|
||||||
if (qmakeBuildConfiguration() & BaseQtVersion::DebugBuild)
|
if (qmakeBuildConfiguration() & BaseQtVersion::DebugBuild)
|
||||||
return Debug;
|
return Debug;
|
||||||
else if (qmakeStep()->separateDebugInfo())
|
else if (qs && qs->separateDebugInfo())
|
||||||
return Profile;
|
return Profile;
|
||||||
else
|
else
|
||||||
return Release;
|
return Release;
|
||||||
|
|||||||
@@ -923,8 +923,8 @@ QtSupport::ProFileReader *QmakeProject::createProFileReader(const QmakeProFileNo
|
|||||||
if (bc) {
|
if (bc) {
|
||||||
k = bc->target()->kit();
|
k = bc->target()->kit();
|
||||||
env = bc->environment();
|
env = bc->environment();
|
||||||
if (bc->qmakeStep())
|
if (QMakeStep *qs = bc->qmakeStep())
|
||||||
qmakeArgs = bc->qmakeStep()->parserArguments();
|
qmakeArgs = qs->parserArguments();
|
||||||
else
|
else
|
||||||
qmakeArgs = bc->configCommandLineArguments();
|
qmakeArgs = bc->configCommandLineArguments();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user