Skip to content

Commit 9197931

Browse files
authored
[PWGLF] Avoid unexpected behavior while no matched collisions (#11610)
1 parent c2f1bc0 commit 9197931

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PWGLF/Utils/svPoolCreator.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ class svPoolCreator
129129
}
130130
firstBC++;
131131
}
132+
if (firstCollIdx == -1) {
133+
return;
134+
}
135+
132136
// now loop over all the collisions to make the pool
133137
for (int i = firstCollIdx; i < collisions.size(); i++) {
134138
const auto& collision = collisions.rawIteratorAt(i);

0 commit comments

Comments
 (0)