diff --git a/RecoBTag/FeatureTools/plugins/DeepBoostedJetTagInfoProducer.cc b/RecoBTag/FeatureTools/plugins/DeepBoostedJetTagInfoProducer.cc index 8aacb9b3f870c..7688e117f1b9e 100644 --- a/RecoBTag/FeatureTools/plugins/DeepBoostedJetTagInfoProducer.cc +++ b/RecoBTag/FeatureTools/plugins/DeepBoostedJetTagInfoProducer.cc @@ -683,6 +683,8 @@ void DeepBoostedJetTagInfoProducer::fillParticleFeatures(DeepBoostedJetFeatures pv_ass = (*pvas_)[cand]; if (pv_ass.isNonnull()) vtx_ass = vtx_ass_from_pfcand(*reco_cand, pv_ass_quality, pv_ass); + else + edm::LogWarning("DeepBoostedJetTagInfoProducer") << "Null primary vertex reference"; } else throw edm::Exception(edm::errors::InvalidReference) << "Vertex association missing"; }