excel-streaming-reader icon indicating copy to clipboard operation
excel-streaming-reader copied to clipboard

ArrayIndexOutOfBoundsException in StreamingWorkbook.getSheet(name) when sheet with that name does not exist

Open marmys opened this issue 8 years ago • 2 comments

version used: 1.1.0

stack trace: java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.elementData(ArrayList.java:418) at java.util.ArrayList.get(ArrayList.java:431) at com.monitorjbl.xlsx.impl.StreamingWorkbook.getSheet(StreamingWorkbook.java:85)

marmys avatar May 19 '17 08:05 marmys

I believe this is fixed in the latest code, can you check it out and install it locally?

monitorjbl avatar May 21 '17 01:05 monitorjbl

Hi, thanks for reply. In the latest code throwing ArrayIndexOutOfBoundException is fixed. But another problem is that now MissingSheetException is thrown when sheet is missing and according to documentation null should be returned.

marmys avatar May 23 '17 08:05 marmys