Circular machines segfault in debug mode

Issue #148 resolved
Jochem Snuverink created an issue

BDSBeamline::AddSingleComponent takes a BDSTiltOffset pointer, which is nullptr by default. In debug mode this pointer is dereferenced (line 171):

G4cout << "tilt offsetX offsetY        " << *tiltOffset << " rad mm mm " << G4endl;

This results in a crash when an element has no tiltOffset (e.g. terminator or teleporter). An example is the Teleporter-Component test.

Comments (1)

  1. Log in to comment