diff --git a/hutool-poi/src/main/java/cn/hutool/poi/excel/sax/Excel07SaxReader.java b/hutool-poi/src/main/java/cn/hutool/poi/excel/sax/Excel07SaxReader.java index 4c55b90d2..c89a1bd33 100644 --- a/hutool-poi/src/main/java/cn/hutool/poi/excel/sax/Excel07SaxReader.java +++ b/hutool-poi/src/main/java/cn/hutool/poi/excel/sax/Excel07SaxReader.java @@ -120,11 +120,11 @@ public class Excel07SaxReader implements ExcelSaxReader { * @since 5.4.4 */ public Excel07SaxReader read(XSSFReader xssfReader, String idOrRid) throws POIException { - // 获取共享样式表 + // 获取共享样式表,样式非必须 try { this.handler.stylesTable = xssfReader.getStylesTable(); - } catch (Exception e) { - //ignore + } catch (IOException | InvalidFormatException ignore) { + // ignore } // 获取共享字符串表