java.lang.NullPointerException: null
at com.github.liaochong.myexcel.core.converter.ReadConverterContext.convert(ReadConverterContext.java:149)
at com.github.liaochong.myexcel.core.DefaultExcelReader.lambda$instanceObj$18(DefaultExcelReader.java:432)
at java.util.HashMap.forEach(HashMap.java:1289)
at com.github.liaochong.myexcel.core.DefaultExcelReader.instanceObj(DefaultExcelReader.java:417)
at com.github.liaochong.myexcel.core.DefaultExcelReader.getDataFromFile(DefaultExcelReader.java:329)
at com.github.liaochong.myexcel.core.DefaultExcelReader.doRead(DefaultExcelReader.java:202)
at com.github.liaochong.myexcel.core.DefaultExcelReader.read(DefaultExcelReader.java:183)
at com.github.liaochong.myexcel.core.DefaultExcelReader.read(DefaultExcelReader.java:179)
Bug描述 版本:4.5.0
com.github.liaochong.myexcel.core.context.ReadContext#readConfig
未初始化,导致当Excel导入时对错误信息的处理失败。Bug复现 按如下步骤复现(Steps to reproduce the behavior):
a
变量为Double型,数据中对应列数据为“字符”DefaultExcelReader
,导入刚才的数据, 得到下面的异常:期望的结果 Boolean toContinue = readContext.readConfig.exceptionFunction.apply(e, readContext); 语句能够正常执行