Skip to content

ActsEvent: Add missing protection for ConstMultiTrajectory::referenceSurface_impl

Edward Moyse requested to merge emoyse/athena:main-fix-constmultitraj into main

If a client forgets to call setSurfaces on a ConstMultiTrajectory, then we currently get a crash when calling e.g. hasReferenceSurface on the track states (in my case because this returns a surface at istate 22, but m_surfaces is empty).

Fixed by adding the same protection as is in MutableMultiTrajectory::referenceSurface_impl

cc @tbold @wolter @pagessin

Merge request reports