don't fail on null guid for rooted element deletion #2796

This commit is contained in:
Thomas Krijnen
2023-12-01 15:49:31 +01:00
parent c3d24c76f2
commit 4f64b658b0
+1 -1
View File
@@ -2306,7 +2306,7 @@ void IfcFile::process_deletion_() {
}
}
if (entity->declaration().is(*ifcroot_type_)) {
if (entity->declaration().is(*ifcroot_type_) && !entity->data().getArgument(0)->isNull()) {
const std::string global_id = *entity->data().getArgument(0);
auto it = byguid_.find(global_id);
if (it != byguid_.end()) {