Skip to content
Snippets Groups Projects
Commit 673045d3 authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'coverity2.AthenaRootComps-20180902' into 'master'

AthenaRootComps: Fix coverity 115179.

See merge request atlas/athena!13917
parents 90a2707a 5f4bdc02
No related merge requests found
......@@ -285,7 +285,11 @@ StatusCode xAODEventSelector::initialize()
//ensure the MetaDataSvc is added as a provider first, if we are in hybrid mode
if(m_readMetadataWithPool) {
std::vector<std::string> propVal;
CHECK( Gaudi::Parsers::parse( propVal , dynamic_cast<IProperty*>(&*m_ppSvc)->getProperty("ProviderNames").toString() ) );
IProperty* prop = dynamic_cast<IProperty*>(&*m_ppSvc);
if (!prop) {
return StatusCode::FAILURE;
}
CHECK( Gaudi::Parsers::parse( propVal , prop->getProperty("ProviderNames").toString() ) );
bool foundSvc(false);
for(auto s : propVal) {
if(s=="MetaDataSvc") { foundSvc=true; break; }
......
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