提交 0b4e3340 编写于 作者: 庄家钜's avatar 庄家钜

修改异常样式的情况下不会空指针

上级 d5a27557
......@@ -65,6 +65,9 @@ public class XlsxReadWorkbookHolder extends ReadWorkbookHolder {
return null;
}
XSSFCellStyle xssfCellStyle = stylesTable.getStyleAt(dateFormatIndexInteger);
if (xssfCellStyle == null) {
return null;
}
dataFormatData.setIndex(xssfCellStyle.getDataFormat());
dataFormatData.setFormat(BuiltinFormats.getBuiltinFormat(dataFormatData.getIndex(),
xssfCellStyle.getDataFormatString(), globalConfiguration().getLocale()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册