diff --git a/src/ifcgeom/IfcGeomIteratorImplementation.h b/src/ifcgeom/IfcGeomIteratorImplementation.h index af6dbf9225..6e06cc275c 100644 --- a/src/ifcgeom/IfcGeomIteratorImplementation.h +++ b/src/ifcgeom/IfcGeomIteratorImplementation.h @@ -288,6 +288,10 @@ namespace IfcGeom { size_t processed_ = 0; void process_finished_rep(geometry_conversion_task* rep) { + if (rep->elements.empty()) { + return; + } + std::lock_guard lk(element_ready_mutex_); all_processed_elements_.insert(all_processed_elements_.end(), rep->elements.begin(), rep->elements.end());