Skip to content
Snippets Groups Projects
Commit 96af33aa authored by Shaun Roe's avatar Shaun Roe
Browse files

ensure accessor is not empty

parent 06ca16de
No related branches found
No related tags found
No related merge requests found
......@@ -221,7 +221,7 @@ T* WebdaqHistSvc::getHist_i(const std::string& id, const size_t& /*ind*/, bool q
ATH_MSG_DEBUG("Getting histogram " << id);
tbb::concurrent_hash_map<std::string, THistID>::const_accessor accessor;
if (!m_hists.find(accessor, id)) {
if (!m_hists.find(accessor, id) or accessor.empty()) {
if (!quiet) ATH_MSG_ERROR("could not locate Hist with id \"" << id << "\"");
return nullptr;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment