Skip to content
Snippets Groups Projects
Commit bcaf734d authored by Charles Leggett's avatar Charles Leggett
Browse files

check if thread local EventContext has extension before trying to extract proxy

parent 57554df7
No related branches found
No related tags found
No related merge requests found
......@@ -881,7 +881,8 @@ namespace SG {
if (ctx)
return ctx->getExtension<Atlas::ExtendedEventContext>()->proxy();
if (m_storeWasSet && m_store) return m_store;
return Gaudi::Hive::currentContext().getExtension<Atlas::ExtendedEventContext>()->proxy();
const Atlas::ExtendedEventContext *eec = Gaudi::Hive::currentContext().getExtension<Atlas::ExtendedEventContext>();
return ( (eec == nullptr) ? nullptr : eec->proxy() );
}
if (m_storeWasSet && m_store) return m_store;
......
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