mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 15:17:33 +00:00
Defensiveness against invalid data
This commit is contained in:
@@ -709,7 +709,7 @@ void IfcParse::IfcFile::load(unsigned entity_instance_name, const IfcParse::enti
|
|||||||
load(entity_instance_name, entity, context.push(), attribute_index == -1 ? (int) attribute_index_within_data : attribute_index);
|
load(entity_instance_name, entity, context.push(), attribute_index == -1 ? (int) attribute_index_within_data : attribute_index);
|
||||||
} else {
|
} else {
|
||||||
return_value++;
|
return_value++;
|
||||||
if (TokenFunc::isIdentifier(next)) {
|
if (TokenFunc::isIdentifier(next) && entity) {
|
||||||
register_inverse(entity_instance_name, entity, next, attribute_index == -1 ? attribute_index_within_data : attribute_index);
|
register_inverse(entity_instance_name, entity, next, attribute_index == -1 ? attribute_index_within_data : attribute_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user