mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
Log and validate invalid attribute counts - 0 for header entities
This commit is contained in:
@@ -201,7 +201,7 @@ IfcEntityInstanceData IfcParse::parse_context::construct(int name, unresolved_re
|
|||||||
expected_size && *expected_size != tokens_.size())
|
expected_size && *expected_size != tokens_.size())
|
||||||
{
|
{
|
||||||
size_t expected = expected_size ? *expected_size : parameter_types.size();
|
size_t expected = expected_size ? *expected_size : parameter_types.size();
|
||||||
Logger::Warning("Expected " + std::to_string(expected) + " attribute values, found " + std::to_string(tokens_.size()) + " for instance #" + std::to_string(name));
|
Logger::Warning("Expected " + std::to_string(expected) + " attribute values, found " + std::to_string(tokens_.size()) + " for instance #" + std::to_string(name > 0 ? name : 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tokens_.empty()) {
|
if (tokens_.empty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user