Skip to content

Add sanity check to TupleToolHOP

Carla Marin Benito requested to merge cmarinbe-TupleToolHOP into run2-patches

Check a valid PV was retrieved before accessing its properties.

Running a dummy selection without PV existence check or anything similar I got a segmentation fault for events where the PV was not found. In general this should not happen but a sanity check is now added to avoid the crash in such a case. Instead, a dummy value (HOP = 0) is returned.

This should be ported also to master, etc.

Edited by Carla Marin Benito

Merge request reports