diff --git a/src/ifcgeom_schema_agnostic/Kernel.cpp b/src/ifcgeom_schema_agnostic/Kernel.cpp index 28eb00a207..d11e9b4895 100644 --- a/src/ifcgeom_schema_agnostic/Kernel.cpp +++ b/src/ifcgeom_schema_agnostic/Kernel.cpp @@ -145,6 +145,8 @@ IfcUtil::IfcBaseEntity* IfcGeom::Kernel::get_decomposing_entity(IfcUtil::IfcBase return get_decomposing_entity_impl(inst->as(), include_openings); } else if (inst->as()) { return get_decomposing_entity_impl(inst->as(), include_openings); + } else if (inst->declaration().name() == "IfcProject") { + return nullptr; } else { throw IfcParse::IfcException("Unexpected entity " + inst->declaration().name()); }