Skip to content

Commit

Permalink
Merge pull request #42776 from kpedro88/HandleEmptyColl_132X
Browse files Browse the repository at this point in the history
check for empty collection in SiStripApproximateClusterCollection [13_2_X]
  • Loading branch information
cmsbuild authored Sep 13, 2023
2 parents 87dd7f8 + f3bd210 commit ae532ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class SiStripApproximateClusterCollection {
void reserve(std::size_t dets, std::size_t clusters);
Filler beginDet(unsigned int detId);

const_iterator begin() const { return const_iterator(this); }
const_iterator begin() const { return clusters_.empty() ? end() : const_iterator(this); }
const_iterator cbegin() const { return begin(); }
const_iterator end() const { return const_iterator(); }
const_iterator cend() const { return end(); }
Expand Down

0 comments on commit ae532ef

Please sign in to comment.