RESOLVED - issue BATCH-1297: Add null check for FlatFileItemReader in case resource exists on close, but not on open(!)

http://jira.springframework.org/browse/BATCH-1297
This commit is contained in:
dsyer
2009-06-18 07:16:35 +00:00
parent 54a974f707
commit 015b7e59eb
2 changed files with 2 additions and 2 deletions

View File

@@ -229,7 +229,7 @@ public class FlatFileItemReader<T> extends AbstractItemCountingItemStreamItemRea
@Override
protected void doClose() throws Exception {
lineCount = 0;
if (resource.exists()) {
if (reader!=null) {
reader.close();
}
}