Skip to content
Snippets Groups Projects
Commit b2609145 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Check msgSvc() is not null

This fixes a crash in athenaHLT jobs

fixes ATR-15094

See merge request !222
parents b111898c b1ffc75f
No related branches found
No related tags found
1 merge request!222Check msgSvc() is not null
Pipeline #
......@@ -188,7 +188,9 @@ protected:
/// This function is meant to be called by the update handler of the OutputLevel property.
void updateMsgStreamOutputLevel(int level) {
if (level != MSG::NIL && level != m_level) {
msgSvc()->setOutputLevel(this->name(), level);
if (msgSvc()) {
msgSvc()->setOutputLevel(this->name(), level);
}
if (m_msgStream) m_msgStream->setLevel(level);
if (UNLIKELY(MSG::Level(level) <= MSG::DEBUG))
debug() << "Property update for OutputLevel : new value = " << level << endmsg;
......
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