Skip to content
Snippets Groups Projects
Commit bdcb8504 authored by Pierre-Alain Loizeau's avatar Pierre-Alain Loizeau Committed by Pierre-Alain Loizeau
Browse files

Add safety check for empty match in TrdHitProducerQa, fix #2736

parent 207ac524
No related branches found
No related tags found
1 merge request!1103Add safety check for empty match in TrdHitProducerQa, fix #2736
Pipeline #21316 passed
......@@ -166,6 +166,7 @@ void CbmTrdHitProducerQa::Exec(Option_t*)
const CbmMatch* trdDigiMatch = fDigiMan->GetMatch(ECbmModuleId::kTrd, trdHit->GetRefId());
if (nullptr == trdDigiMatch) continue;
if (0 == trdDigiMatch->GetNofLinks()) continue; // catch case w/o links as then MatchedLink is invalid
const CbmTrdPoint* trdPoint =
dynamic_cast<CbmTrdPoint*>(fTrdPoints->Get(trdDigiMatch->GetMatchedLink())); // file, event, object
if (nullptr == trdPoint) continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment