BATCH-1082: FlatFileItemReader.doClose() checks if the resource exists before trying to close it.

This commit is contained in:
dhgarrette
2009-02-16 22:03:32 +00:00
parent fa781dc90d
commit b19b90be73
2 changed files with 5 additions and 3 deletions

View File

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