Skip to content
Snippets Groups Projects
Commit 0c88c12c authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'nullLink.GeneratorObjects-20190308' into 'master'

GeneratorObjects: Don't trip assertion in eventIndex for a null link.

See merge request atlas/athena!21749
parents 9bab55ab bb72c6c2
No related branches found
No related tags found
No related merge requests found
......@@ -222,6 +222,8 @@ HepMcParticleLink::index_type HepMcParticleLink::eventIndex() const
index_type index, position;
m_extBarcode.eventIndex (index, position);
if (index == ExtendedBarCode::UNDEFINED) {
// Don't trip the assertion for a null link.
if (barcode() == 0) return 0;
cptr();
m_extBarcode.eventIndex (index, position);
assert (index != ExtendedBarCode::UNDEFINED);
......
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