diff --git a/src/main/java/uk/ac/ebi/eva/pipeline/jobs/steps/tasklets/FileStatsTasklet.java b/src/main/java/uk/ac/ebi/eva/pipeline/jobs/steps/tasklets/FileStatsTasklet.java index af609361..e01c8b70 100644 --- a/src/main/java/uk/ac/ebi/eva/pipeline/jobs/steps/tasklets/FileStatsTasklet.java +++ b/src/main/java/uk/ac/ebi/eva/pipeline/jobs/steps/tasklets/FileStatsTasklet.java @@ -76,7 +76,7 @@ public FileStatsTasklet(DatabaseParameters databaseParameters, MongoTemplate mon public RepeatStatus execute(StepContribution stepContribution, ChunkContext chunkContext) throws Exception { populateFilesIdAndNumberOfSamplesMap(); - if (!fileIdCountsMap.isEmpty()) { + if (!fileIdNumberOfSamplesMap.isEmpty()) { initializeFileIdCountsMap(); cursor = initializeCursor(); try {