Skip to content

Commit

Permalink
Fixed ConcurrentModificationException when loading populations with u…
Browse files Browse the repository at this point in the history
…nselected plans
  • Loading branch information
Aleksander1234519 committed Dec 3, 2024
1 parent ae2cdab commit 428948e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,7 @@ public void run(Person person) {
}

// Remove all unselected plans because these are not handled
person.getPlans().stream()
.filter(p -> p != person.getSelectedPlan())
.forEach(person::removePlan);
person.getPlans().removeIf(p -> p != person.getSelectedPlan());
}


Expand Down

0 comments on commit 428948e

Please sign in to comment.