Problem 978 - G4Track::GetVolume() causes core dump rather than returning null
Summary: G4Track::GetVolume() causes core dump rather than returning null
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: track (show other problems)
Version: 9.0
Hardware: All All
: P5 trivial
Assignee: kurasige
URL:
Depends on:
Blocks:
 
Reported: 2007-10-02 01:46 CEST by asai
Modified: 2007-10-02 02:45 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description asai 2007-10-02 01:46:09 CEST
G4Track::GetVolume() causes core dump instead of returning null when this method is invoked for a primary particle (i.e. does not yet have a valid touchable).
Comment 1 kurasige 2007-10-02 02:45:10 CEST
Add protection to avoid core dump if the touchable is invalid