From 4f64b658b0469bc1d5aefea7c9b352c9befb16c0 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 1 Dec 2023 15:49:31 +0100 Subject: [PATCH] don't fail on null guid for rooted element deletion #2796 --- src/ifcparse/IfcParse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcparse/IfcParse.cpp b/src/ifcparse/IfcParse.cpp index 27b8236b82..d9a9353dfc 100644 --- a/src/ifcparse/IfcParse.cpp +++ b/src/ifcparse/IfcParse.cpp @@ -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()) {