From bdcb60cdc337913b33a1f5b48de4e60de41bd27b Mon Sep 17 00:00:00 2001 From: scott snyder <scott.snyder@cern.ch> Date: Mon, 4 Sep 2017 16:35:02 +0200 Subject: [PATCH] TrigT2CaloCommon: Don't try to access unconfigured TrigTimerSvc. Check whether TrigTimerSvc handle has been configured before accessing it. Former-commit-id: d75cb0f660483e52a965f145900c224a272b9fbf --- Trigger/TrigAlgorithms/TrigT2CaloCommon/src/IAlgToolCalo.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Trigger/TrigAlgorithms/TrigT2CaloCommon/src/IAlgToolCalo.cxx b/Trigger/TrigAlgorithms/TrigT2CaloCommon/src/IAlgToolCalo.cxx index 327d6f0f7ff..710a935465a 100755 --- a/Trigger/TrigAlgorithms/TrigT2CaloCommon/src/IAlgToolCalo.cxx +++ b/Trigger/TrigAlgorithms/TrigT2CaloCommon/src/IAlgToolCalo.cxx @@ -41,7 +41,7 @@ StatusCode IAlgToolCalo::initialize() // Initialize timing service in order to perform some measures // of performance - if( (m_timersvc.retrieve()).isFailure() ) { + if( !m_timersvc.empty() && m_timersvc.retrieve().isFailure() ) { ATH_MSG_WARNING( name() << ": Unable to locate TrigTimer Service" ); // Does not need to fail the Algorithm if no timing service is found -- GitLab