Skip to content

Commit 0dbe527

Browse files
authored
Merge pull request #48046 from smuzaffar/asan-nonnull-fix
[ASAN][GCC14]Check iterators in CTPPSProtonReconstructionPlotter
2 parents 947c1f9 + 7a97092 commit 0dbe527

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Validation/CTPPS/plugins/CTPPSProtonReconstructionPlotter.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,9 @@ void CTPPSProtonReconstructionPlotter::analyze(const edm::Event &event, const ed
701701
if (!proton.validFit())
702702
continue;
703703

704+
if (proton.contributingLocalTracks().begin() == proton.contributingLocalTracks().end()) {
705+
continue;
706+
}
704707
CTPPSDetId rpId((*proton.contributingLocalTracks().begin())->rpId());
705708
unsigned int armId = rpId.arm();
706709
const auto &pl = multiRPPlots_[armId];

0 commit comments

Comments
 (0)