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,7 +668,8 @@ QtSupport::ProFileReader *QmakeProject::createProFileReader(const QmakeProFile *
|
||||
} else {
|
||||
// Set up a better default environment without using a build configuration:
|
||||
QmakeBuildConfiguration::setupBuildEnvironment(k, env);
|
||||
k->addToEnvironment(env);
|
||||
if (k)
|
||||
k->addToEnvironment(env);
|
||||
}
|
||||
|
||||
QtSupport::BaseQtVersion *qtVersion = QtSupport::QtKitInformation::qtVersion(k);
|
||||
|
Reference in New Issue
Block a user