diff --git a/TrackingTools/GsfTracking/src/GsfMultiStateUpdator.cc b/TrackingTools/GsfTracking/src/GsfMultiStateUpdator.cc index f3d6d173c105d..1abf2599fe290 100644 --- a/TrackingTools/GsfTracking/src/GsfMultiStateUpdator.cc +++ b/TrackingTools/GsfTracking/src/GsfMultiStateUpdator.cc @@ -12,6 +12,11 @@ TrajectoryStateOnSurface GsfMultiStateUpdator::update(const TrajectoryStateOnSurface& tsos, const TrackingRecHit& aRecHit) const { + if (!tsos.isValid()) { + edm::LogError("GsfMultiStateUpdator") << "Trying to update trajectory state with invalid TSOS! "; + return TrajectoryStateOnSurface(); + } + GetComponents comps(tsos); auto const& predictedComponents = comps(); if (predictedComponents.empty()) {