Update G4HadIntProcessor.cxx: nullptr check for invisible particles
Add conditional in finalize
to ensure m_g4step
is not null.
This could be the case if we have events with only invisible particles
(which do not have G4Step
s).
Add conditional in finalize
to ensure m_g4step
is not null.
This could be the case if we have events with only invisible particles
(which do not have G4Step
s).