easy-batch icon indicating copy to clipboard operation
easy-batch copied to clipboard

Allows a job with a MultiFileRecordReader and no input files not to fail

Open okayawright opened this issue 4 years ago • 0 comments

https://github.com/j-easy/easy-batch/blob/647ce811fc1ada476ceef4f48a2f8523367a4892/easy-batch-core/src/main/java/org/jeasy/batch/core/reader/AbstractMultiFileRecordReader.java#L77

I believe the line could be changed to :

currentFile = iterator.hasNext() ? iterator.next() : null;

in order to allow a job with no input files not to fail, just to report as COMPLETE even if it didn't process anything

okayawright avatar Jun 01 '21 10:06 okayawright