Skip to content

Commit

Permalink
Fix null poiniter
Browse files Browse the repository at this point in the history
  • Loading branch information
QuyenLy87 committed Mar 26, 2024
1 parent be610cd commit eb5e7c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public List<Future<List<ConceptPojo>>> performTransform(Collection<ConceptPojo>
}
batchJob.add(conceptPojo);
counter++;
if (counter % batchMax == 0 || counter == transformRequest.getConceptsToTransform().size()) {
if (counter % batchMax == 0 || counter == concepts.size()) {
// Do work
final List<ConceptPojo> task = batchJob;
results.add(executorService.submit(() -> batchTransform(input, task, restClient)));
Expand Down

0 comments on commit eb5e7c1

Please sign in to comment.