diff --git a/HighGranularityTimingDetector/HGTD_DetDescr/HGTD_GeoModel/src/HGTD_DetectorTool.cxx b/HighGranularityTimingDetector/HGTD_DetDescr/HGTD_GeoModel/src/HGTD_DetectorTool.cxx index 8219e985777b0c36222cc11ff22f2d4a80f965c5..788eb53d3162040eff5417aaddce6e114fa4fe04 100644 --- a/HighGranularityTimingDetector/HGTD_DetDescr/HGTD_GeoModel/src/HGTD_DetectorTool.cxx +++ b/HighGranularityTimingDetector/HGTD_DetDescr/HGTD_GeoModel/src/HGTD_DetectorTool.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration */ // includes @@ -43,7 +43,7 @@ StatusCode HGTD_DetectorTool::create() { ATH_CHECK(detStore()->retrieve(idHelper, "HGTD_ID")); m_athenaComps.setIdHelper(idHelper); - GeoModelExperiment *theExpt; + GeoModelExperiment *theExpt = nullptr; ATH_CHECK(detStore()->retrieve(theExpt, "ATLAS")); // The * converts a ConstPVLink to a ref to a GeoVPhysVol, the & takes the address of the GeoVPhysVol