Skip to content

Commit 346b4c6

Browse files
committed
Fix UnsupportedOperationException
1 parent aaf550b commit 346b4c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

primeseq/src/org/labkey/primeseq/pipeline/MhcCleanupPipelineJob.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ public Pair<Integer, Integer> collapseGroups(Logger log, User user)
561561
throw new IllegalStateException("Starting/ending counts not equal: " + initialCounts + " / " + endCounts);
562562
}
563563

564-
List<Integer> alignmentIdsToDelete = groups.stream().map(x -> x.rowIdsToDelete).flatMap(List::stream).toList();
564+
List<Integer> alignmentIdsToDelete = new ArrayList<>(groups.stream().map(x -> x.rowIdsToDelete).flatMap(List::stream).toList());
565565
List<AlignmentGroup> alignmentGroupsToUpdate = groups.stream().filter(g -> !g.rowIdsToDelete.isEmpty()).toList();
566566
log.info("Alignment IDs to delete: " + alignmentIdsToDelete.size());
567567
log.info("Alignment groups to update counts: " + alignmentGroupsToUpdate.size());

0 commit comments

Comments
 (0)