catch missing instances one by one. do not throw away whole relation.

This commit is contained in:
Otso Alho
2022-06-07 14:37:12 +03:00
committed by Thomas Krijnen
parent a2362668a3
commit d005524c4c
+6 -2
View File
@@ -827,8 +827,12 @@ ArgumentList::operator aggregate_of_instance::ptr() const {
aggregate_of_instance::ptr l ( new aggregate_of_instance() );
for (size_t i = 0; i < size_; ++i) {
// FIXME: account for $
IfcUtil::IfcBaseClass* entity = *list_[i];
l->push(entity);
try {
IfcUtil::IfcBaseClass *entity = *list_[i];
l->push(entity);
} catch (IfcException e) {
Logger::Error(e);
}
}
return l;
}