diff --git a/reco/detectors/tof/CbmTofEventClusterizer.cxx b/reco/detectors/tof/CbmTofEventClusterizer.cxx index f2ac5be4eb3d4d65eb5acfdbed160494d84ce8f2..b629186880bbe81a3423a876ba1751ac9843f4e9 100644 --- a/reco/detectors/tof/CbmTofEventClusterizer.cxx +++ b/reco/detectors/tof/CbmTofEventClusterizer.cxx @@ -337,7 +337,7 @@ void CbmTofEventClusterizer::SetParContainers() { } void CbmTofEventClusterizer::Exec(Option_t* option) { - fTofDigiPointMatchesOut->clear(); + if (nullptr != fTofDigiPointMatchesOut) fTofDigiPointMatchesOut->clear(); if (fTofCalDigiVecOut) fTofCalDigiVecOut->clear(); if (fEventsColl) {