Skip to content

Commit

Permalink
copy list to prevent ConcurrentModificationException (#4554)
Browse files Browse the repository at this point in the history
  • Loading branch information
purplefox authored Feb 14, 2020
1 parent ddf0701 commit a6dfdaa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void handleError(final Throwable t) {
}

public synchronized List<JsonObject> getRowsInserted() {
return rowsInserted;
return new ArrayList<>(rowsInserted);
}

public synchronized boolean isCompleted() {
Expand Down

0 comments on commit a6dfdaa

Please sign in to comment.