diff --git a/InnerDetector/InDetEventCnv/SCT_RawDataByteStreamCnv/src/SCTRawDataProvider.cxx b/InnerDetector/InDetEventCnv/SCT_RawDataByteStreamCnv/src/SCTRawDataProvider.cxx index 0a954aea7da09d4f5137bc791a502906b380d666..ebe8e1dc15c0a78bde98ada29d714fc9abb372de 100644 --- a/InnerDetector/InDetEventCnv/SCT_RawDataByteStreamCnv/src/SCTRawDataProvider.cxx +++ b/InnerDetector/InDetEventCnv/SCT_RawDataByteStreamCnv/src/SCTRawDataProvider.cxx @@ -146,14 +146,16 @@ StatusCode SCTRawDataProvider::execute(const EventContext& ctx) const else { rdoInterface = static_cast<ISCT_RDO_Container* >(rdoContainer.ptr()); } - int missingCount{}; - for ( IdentifierHash hash: hashIDs ) { - if ( not rdoInterface->tryAddFromCache( hash ) ) missingCount++; - bsIDCErrContainer->tryAddFromCache( hash ); - } - ATH_MSG_DEBUG("Out of: " << hashIDs.size() << "Hash IDs missing: " << missingCount ); - if ( missingCount == 0 ) { - return StatusCode::SUCCESS; + if ( not hashIDs.empty() ) { + int missingCount{}; + for ( IdentifierHash hash: hashIDs ) { + if ( not rdoInterface->tryAddFromCache( hash ) ) missingCount++; + bsIDCErrContainer->tryAddFromCache( hash ); + } + ATH_MSG_DEBUG("Out of: " << hashIDs.size() << "Hash IDs missing: " << missingCount ); + if ( missingCount == 0 ) { + return StatusCode::SUCCESS; + } } // Ask SCTRawDataProviderTool to decode it and to fill the IDC