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

This commit is contained in:
Thomas Krijnen
2023-12-01 15:49:31 +01:00
parent da306c6141
commit 7168f8eeff
+1 -1
View File
@@ -2240,7 +2240,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()) {