Skip to content

Commit c4684b4

Browse files
committed
bulletproof the call to removeCachedProduct -- handle case if handle is not valid
1 parent 4f814e4 commit c4684b4

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)