mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Break out of loop in case of attribute count mismatch
This commit is contained in:
@@ -139,7 +139,7 @@ ptree& format_entity_instance(IfcUtil::IfcBaseEntity* instance, ptree& child, pt
|
||||
instance->getArgument(i);
|
||||
} catch (const std::exception& e) {
|
||||
Logger::Error("Expected " + boost::lexical_cast<std::string>(n) + " attributes for:", instance->entity);
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
const Argument* argument = instance->getArgument(i);
|
||||
if (argument->isNull()) continue;
|
||||
|
||||
Reference in New Issue
Block a user