Commit b054e1b1 authored by Robert Loehning's avatar Robert Loehning

BuildConfiguration: Check return value of fromMap

Change-Id: I18edefc20ff962720f36192121e3f6e341b1bcbc
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
parent b2a3884c
......@@ -487,7 +487,10 @@ BuildConfiguration *IBuildConfigurationFactory::clone(Target *parent, BuildConfi
return nullptr;
BuildConfiguration *bc = m_creator(parent);
QVariantMap data = product->toMap();
bc->fromMap(data);
if (!bc->fromMap(data)) {
delete bc;
bc = nullptr;
}
return bc;
}
......
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