Skip to content

Commit

Permalink
Prevent concurrent modification exception
Browse files Browse the repository at this point in the history
  • Loading branch information
kerim1 committed Oct 21, 2022
1 parent 6da4f39 commit e2bdf9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ private void writeUpdate() {
Type type = typeEntry.getValue();

// finish the predicates register if it has been singular or list
for (Predicate predicate : type.getPredicates()) {
for (Predicate predicate : List.copyOf(type.getPredicates())) {
predicate.finish();
predicate.getReferenceTypes().keySet().forEach(key -> {
Type refType = types.get(key);
Expand Down

0 comments on commit e2bdf9f

Please sign in to comment.