Skip to content

Commit 35c204e

Browse files
committed
HBFUtilsInitializer throws if tfidinfo vector is empty
1 parent 440b7d2 commit 35c204e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Detectors/Raw/src/HBFUtilsInitializer.cxx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ std::vector<o2::dataformats::TFIDInfo> HBFUtilsInitializer::readTFIDInfoVector(c
156156
}
157157
std::vector<o2::dataformats::TFIDInfo> v(*vptr);
158158
NTFs = v.size();
159+
if (!NTFs) {
160+
throw std::runtime_error(fmt::format("tfidinfo vector from {} has 0 size", fname));
161+
}
159162
return v;
160163
}
161164

0 commit comments

Comments
 (0)