Update XSSFReader.java

This commit is contained in:
PJ Fanning 2025-08-01 21:32:18 +01:00
parent 4a9c9271fe
commit e070250352

View File

@ -178,7 +178,7 @@ public class XSSFReader {
// Create the Styles Table, and associate the Themes if present
StylesTable styles = new StylesTable(parts.get(0));
parts = pkg.getPartsByContentType(XSSFRelation.THEME.getContentType());
if (parts.size() != 0) {
if (!parts.isEmpty()) {
styles.setTheme(new ThemesTable(parts.get(0)));
}
return styles;