https://bz.apache.org/bugzilla/show_bug.cgi?id=59222
Bug ID: 59222
Summary: XSSFSheet.getCellComments() raises NPE when sheet has
no cell comments
Product: POI
Version: 3.15-dev
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
Reported by Vasily Kopytov on user@poi mailing list.
> I'm trying to find comments to cells on a spreadsheet.
> All is well, when comments have org.apache.poi.ss.usermodel.Sheet.
> getCellComments() returns. But when no comments, an exception is thrown
> java.lang.NullPointerException.
> Is it possible to do so in this case getCellComments() returned null or an
> empty Map?
I believe this bug only applies to (S)XSSF. The cleanest solution is to return
an empty map.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]