Summary: | NPE with missing Drawing in XSSFReader | ||
---|---|---|---|
Product: | POI | Reporter: | Tim Allison <tallison> |
Component: | XSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.16-dev | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
Tim Allison
2017-01-13 13:40:38 UTC
Any objections if we add a null check in getShapes() PackagePart drawingsPart = sheetPkg.getPackage().getPart(drawingsName); if (drawingsPart == null) { //parts can go missing; Excel ignores them silently -- TIKA-2134/POI 60584 continue; } Looks fine to me. Is this a rare cases that would warrant a log.info or log.warn level entry? |