mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
don't fail on null guid for rooted element deletion #2796
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user