Commit 005f2f3b authored by Chao Peng's avatar Chao Peng
Browse files

fix an issue that GeoSvc crashes if there were no trackers

parent 8122f9a3
Pipeline #8153 failed with stages
in 2 minutes and 10 seconds
......@@ -125,7 +125,9 @@ StatusCode GeoSvc::initialize() {
m_trackingGeo = std::move(Acts::convertDD4hepDetector(m_dd4hepgeo->world(), Acts::Logging::VERBOSE, Acts::equidistant,
Acts::equidistant, Acts::equidistant));
draw_surfaces(m_trackingGeo, "Derp.obj");
if (m_trackingGeo) {
draw_surfaces(m_trackingGeo, "Derp.obj");
return StatusCode::SUCCESS;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment