Skip to content

Commit

Permalink
Merge pull request #36738 from fwyzard/fix_HLTLogMonitorFilter_access…
Browse files Browse the repository at this point in the history
…_one-past-the-end

Fix accessing one-past-the-end element
  • Loading branch information
cmsbuild committed Jan 20, 2022
2 parents fb322af + e147992 commit 36301e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HLTrigger/special/plugins/HLTLogMonitorFilter.cc
Expand Up @@ -193,7 +193,7 @@ bool HLTLogMonitorFilter::filter(edm::StreamID, edm::Event& event, const edm::Ev
auto& cat = getCategory(category);
if (cat.id >= doneCache.size()) {
//new categories were added so need to grow
doneCache.resize(cat.id);
doneCache.resize(cat.id + 1);
}
if (not doneCache[cat.id].done) {
doneCache[cat.id].cachedValue = cat.accept();
Expand Down

0 comments on commit 36301e0

Please sign in to comment.