Skip to content

Commit

Permalink
Fix JFoldArrow
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwbrei committed Oct 29, 2024
1 parent ff77aa0 commit bd8dc2d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libraries/JANA/Topology/JFoldArrow.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ class JFoldArrow : public JTriggeredArrow<JFoldArrow> {
throw JException("JFoldArrow received a child with the wrong event level");
}

auto parent = const_cast<JEvent*>(&event->GetParent(m_parent_level));
m_folder->DoFold(*event, *parent);
if (m_folder != nullptr) {
auto parent = const_cast<JEvent*>(&event->GetParent(m_parent_level));
m_folder->DoFold(*event, *parent);
}

status = JArrowMetrics::Status::KeepGoing;
outputs[0] = {event, CHILD_OUT};
Expand Down

0 comments on commit bd8dc2d

Please sign in to comment.