From d5e20a771406826be4b8a499016344466c39624a Mon Sep 17 00:00:00 2001 From: Junghwan John Goh Date: Wed, 10 Feb 2016 14:53:01 +0100 Subject: [PATCH] avoid invalid pointer access --- TopQuarkAnalysis/TopEventProducers/src/PseudoTopProducer.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/TopQuarkAnalysis/TopEventProducers/src/PseudoTopProducer.cc b/TopQuarkAnalysis/TopEventProducers/src/PseudoTopProducer.cc index 6ece5d74b877f..c13b634b7cb86 100644 --- a/TopQuarkAnalysis/TopEventProducers/src/PseudoTopProducer.cc +++ b/TopQuarkAnalysis/TopEventProducers/src/PseudoTopProducer.cc @@ -190,7 +190,10 @@ void PseudoTopProducer::produce(edm::Event& event, const edm::EventSetup& eventS bool hasBHadron = false; for ( size_t j=0, m=fjConstituents.size(); jptrAt(index); constituents.push_back(cand); }