Commit bd3bff0b authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Fix possible crash on QML proeject

 * Happens only when an old .user-file was updated.
parent 15302736
......@@ -382,7 +382,9 @@ bool Target::fromMap(const QVariantMap &map)
const QString key(QString::fromLatin1(DC_KEY_PREFIX) + QString::number(i));
if (!map.contains(key))
return false;
DeployConfiguration *dc(deployConfigurationFactory()->restore(this, map.value(key).toMap()));
DeployConfiguration *dc = 0;
if (deployConfigurationFactory())
dc = deployConfigurationFactory()->restore(this, map.value(key).toMap());
if (!dc)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment