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