Moved setting of flag to after the file has been succesfully opened.

This commit is contained in:
Marten Deinum
2014-08-28 09:13:44 +02:00
committed by Michael Minella
parent 956af71f2e
commit d799fdd561

View File

@@ -106,9 +106,9 @@ public abstract class AbstractExcelItemReader<T> extends AbstractItemCountingIte
return;
}
this.noInput = false;
this.openExcelFile(this.resource);
this.openSheet();
this.noInput = false;
if (logger.isDebugEnabled()) {
logger.debug("Opened workbook ["+this.resource.getFilename()+"] with "+this.getNumberOfSheets()+" sheets.");
}