pig-mesh / excel-spring-boot-starter

本项目旨在为用户提供一个便捷的 Excel 导出解决方案。基于阿里巴巴的 EasyExcel 库,结合 Spring Boot 框架,封装并优化了 Excel 文件的导出流程,帮助开发者更高效地实现数据导出功能。
https://www.yuque.com/pig4cloud/excel
Apache License 2.0
502 stars 149 forks source link

IndexOutOfBoundsException when list is empty #18

Open hanrw opened 3 years ago

hanrw commented 3 years ago

java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) at java.base/java.util.Objects.checkIndex(Objects.java:372) at java.base/java.util.ArrayList.get(ArrayList.java:459) at com.pig4cloud.plugin.excel.handler.ManySheetWriteHandler.write(ManySheetWriteHandler.java:55)