wangguanquan / eec

A fast and lower memory excel write/read tool.一个非POI底层,支持流式处理的高效且超低内存的Excel读写工具
https://github.com/wangguanquan/eec/wiki
Apache License 2.0
226 stars 58 forks source link

#header()方法指定范围外的位置读取时抛NPE #356

Closed wangguanquan closed 1 year ago

wangguanquan commented 1 year ago

空文件指定任意表头,或者从第10开始的表格指定header(1,2)时将出现NPE

java.lang.NullPointerException
    at org.ttzero.excel.reader.HeaderRow.with(HeaderRow.java:106)
    at org.ttzero.excel.reader.HeaderRow.with(HeaderRow.java:100)
    at org.ttzero.excel.reader.XMLSheet.getHeader(XMLSheet.java:335)
    at org.ttzero.excel.reader.XMLSheet.getHeader(XMLSheet.java:272)
    at org.ttzero.excel.reader.XMLSheet.bind(XMLSheet.java:361)
    at org.ttzero.excel.reader.XMLSheet.bind(XMLSheet.java:44)
wangguanquan commented 1 year ago

v0.5.11已修复