java.lang.NullPointerException: null
at org.apache.poi.xssf.usermodel.XSSFClientAnchor.setCol2(XSSFClientAnchor.java:231)
at org.apache.poi.ss.util.ImageUtils.setPreferredSize(ImageUtils.java:188)
at org.apache.poi.xssf.usermodel.XSSFPicture.getPreferredSize(XSSFPicture.java:224)
at org.apache.poi.xssf.usermodel.XSSFPicture.getPreferredSize(XSSFPicture.java:213)
at org.apache.poi.xssf.usermodel.XSSFPicture.getPreferredSize(XSSFPicture.java:203)
at com.jd.icity.indicator.utils.MyExcelPicUtil.getPicMapXlsx(MyExcelPicUtil.java:94)
at com.jd.icity.indicator.utils.MyExcelPicUtil.getPicMap(MyExcelPicUtil.java:41)
at com.jd.icity.indicator.utils.GridOperatorExcelUtil.aliasRead(GridOperatorExcelUtil.java:87)
解决办法:
打开excel,选中图片,ctrl+A选中所有图片,右键,选择 大小和属性,选择 随单元格改变位置和大小。
问题探究:
文章出处登录后可见!