mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +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);
|
instance->getArgument(i);
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
Logger::Error("Expected " + boost::lexical_cast<std::string>(n) + " attributes for:", instance->entity);
|
Logger::Error("Expected " + boost::lexical_cast<std::string>(n) + " attributes for:", instance->entity);
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
const Argument* argument = instance->getArgument(i);
|
const Argument* argument = instance->getArgument(i);
|
||||||
if (argument->isNull()) continue;
|
if (argument->isNull()) continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user