forked from qt-creator/qt-creator
QmakePM: Avoid calling function on nullptr
Task-number: QTCREATORBUG-19419 Change-Id: Iaac597b947ca505819674eec0a862158dce8a632 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -668,6 +668,7 @@ QtSupport::ProFileReader *QmakeProject::createProFileReader(const QmakeProFile *
|
|||||||
} else {
|
} else {
|
||||||
// Set up a better default environment without using a build configuration:
|
// Set up a better default environment without using a build configuration:
|
||||||
QmakeBuildConfiguration::setupBuildEnvironment(k, env);
|
QmakeBuildConfiguration::setupBuildEnvironment(k, env);
|
||||||
|
if (k)
|
||||||
k->addToEnvironment(env);
|
k->addToEnvironment(env);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user