Propagate failure on representation to product

This commit is contained in:
Thomas Krijnen
2020-03-27 14:06:43 +01:00
parent 4aef5dbd10
commit 048ee84ae6
+7 -1
View File
@@ -348,7 +348,13 @@ taxonomy::item* mapping::map_impl(const IfcSchema::IfcProduct* inst) {
n->instance = inst;
c->children = { n };
} else {
c->children = { map(body) };
auto child = map(body);
if (child) {
c->children = { child };
} else {
delete c;
return nullptr;
}
}
return c;
}