Skip to content
Snippets Groups Projects
Commit 8b112e21 authored by Elmar Ritsch's avatar Elmar Ritsch Committed by Graeme Stewart
Browse files

adding null-pointer check for secondary particles returned by TruthIncident...

adding null-pointer check for secondary particles returned by TruthIncident (ISF_HepMC_Services-00-03-07)

	* src/HepMC_TruthSvc.cxx - adding null-pointer check for secondary
	particles returned by TruthIncident
	* tag ISF_HepMC_Services-00-03-07
parent f6d9ada4
No related branches found
No related tags found
No related merge requests found
......@@ -348,7 +348,7 @@ void ISF::HepMC_TruthSvc::registerTruthIncident( ISF::ITruthIncident& truth) {
vtx->add_particle_out( p);
// Check to see if this is meant to be a "primary" vertex
if (p->barcode() < myFirstSecondary){
if ( p && p->barcode() < myFirstSecondary){
vtx->suggest_barcode( myLowestVertex );
++myLowestVertex;
if (m_quasiStableParticlesIncluded){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment