Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Framework/Core/src/ExternalFairMQDeviceProxy.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,11 @@ DataProcessorSpec specifyExternalFairMQDeviceProxy(char const* name,
static auto countEoS = [](fair::mq::Parts& inputs) -> int {
int count = 0;
for (int msgidx = 0; msgidx < inputs.Size() / 2; ++msgidx) {
// Skip when we have nullptr for the header.
// Not sure it can actually happen, but does not hurt.
if (inputs.At(msgidx * 2).get() == nullptr) {
continue;
}
auto const sih = o2::header::get<SourceInfoHeader*>(inputs.At(msgidx * 2)->GetData());
if (sih != nullptr && sih->state == InputChannelState::Completed) {
count++;
Expand Down