Skip to content

Commit 3392b83

Browse files
ddobrigkalibuild
andauthored
[PWGLF] protect against empty / problematic DFs (#10853)
Co-authored-by: ALICE Builder <alibuild@users.noreply.github.com>
1 parent ad9e095 commit 3392b83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PWGLF/Utils/strangenessBuilderHelper.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ template <typename T>
8383
std::vector<V0group> groupDuplicates(const T& V0s)
8484
{
8585
std::vector<V0group> v0table;
86+
if (V0s.size() == 0) {
87+
return v0table;
88+
}
8689
V0group thisV0;
8790
thisV0.V0Ids.push_back(-1); // create one single element
8891
thisV0.collisionIds.push_back(-1); // create one single element

0 commit comments

Comments
 (0)