Skip to content

Commit d637a16

Browse files
Merge pull request #520 from SBNSoftware/trj_tpcdecode_bulletproof_rcp_sep16_2024
bulletproof the call to removeProduct -- deal with case if handle is not valid
2 parents 4c9ab95 + 466497c commit d637a16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sbndcode/Decoders/TPC/SBNDTPCDecoder_module.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ void daq::SBNDTPCDecoder::produce(art::Event & event)
138138
// by downstream processes if need be, but we are
139139
// done with them here
140140

141-
daq_handle.removeProduct();
141+
if ( daq_handle.isValid() ) daq_handle.removeProduct();
142142
}
143143

144144

0 commit comments

Comments
 (0)