Skip to content

Commit

Permalink
Only Clear the LHEF reader if it's initialized and used (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvbrt authored Nov 13, 2024
1 parent 229afa0 commit 94f8f30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion standalone/src/DelphesPythia8Reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ class DelphesPythia8Reader : public DelphesInputReader {
return false;
}
modularDelphes->Clear();
reader->Clear();
if (reader) {
reader->Clear();
}
}
m_readStopWatch.Stop();
m_procStopWatch.Start();
Expand Down

0 comments on commit 94f8f30

Please sign in to comment.