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
|
||||
{
|
||||
QMakeStep *qs = qmakeStep();
|
||||
if (qmakeBuildConfiguration() & BaseQtVersion::DebugBuild)
|
||||
return Debug;
|
||||
else if (qmakeStep()->separateDebugInfo())
|
||||
else if (qs && qs->separateDebugInfo())
|
||||
return Profile;
|
||||
else
|
||||
return Release;
|
||||
|
||||
@@ -923,8 +923,8 @@ QtSupport::ProFileReader *QmakeProject::createProFileReader(const QmakeProFileNo
|
||||
if (bc) {
|
||||
k = bc->target()->kit();
|
||||
env = bc->environment();
|
||||
if (bc->qmakeStep())
|
||||
qmakeArgs = bc->qmakeStep()->parserArguments();
|
||||
if (QMakeStep *qs = bc->qmakeStep())
|
||||
qmakeArgs = qs->parserArguments();
|
||||
else
|
||||
qmakeArgs = bc->configCommandLineArguments();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user