Skip to content
Snippets Groups Projects

DeRichPMTPanel: protect against null test PD pointer

Merged Christopher Rob Jones requested to merge jonrob/LHCb:test-RICH-pd-pointer into master
All threads resolved!
1 file
+ 8
4
Compare changes
  • Side-by-side
  • Inline
@@ -373,10 +373,14 @@ StatusCode DeRichPMTPanel::geometryUpdate() {
const auto pdID = pd->pdSmartID();
// test method to get dePD from smartID
const auto test_pd = dePMT( pdID );
if ( test_pd != pd ) {
error() << "Inconsistent results from dePMT(RichSmartID)" << endmsg;
error() << " -> requested " << pdID << endmsg;
error() << " -> retrieved " << test_pd->pdSmartID() << endmsg;
if ( test_pd ) {
if ( test_pd != pd ) {
error() << "Inconsistent results from dePMT(RichSmartID)" << endmsg;
error() << " -> requested " << pdID << endmsg;
error() << " -> retrieved " << test_pd->pdSmartID() << endmsg;
}
} else {
error() << "dePMT(RichSmartID) returned NULL PD for " << pdID << endmsg;
}
}
}
Loading