diff --git a/be/src/util/bitmap_intersect.h b/be/src/util/bitmap_intersect.h index 72695f331f..75ba258d17 100644 --- a/be/src/util/bitmap_intersect.h +++ b/be/src/util/bitmap_intersect.h @@ -184,6 +184,9 @@ public: // intersection BitmapValue intersect() const { BitmapValue result; + if (_bitmaps.empty()) { + return result; + } auto it = _bitmaps.begin(); result |= it->second; it++;