From 7168f8eeffc0f36155e10e10e05dcfd85a73f299 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 1 Dec 2023 15:49:31 +0100 Subject: [PATCH] #2796 don't fail on null guid for rooted element deletion --- 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 c1e2895b7c..d0ccb44aa6 100644 --- a/src/ifcparse/IfcParse.cpp +++ b/src/ifcparse/IfcParse.cpp @@ -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()) {