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: dev@poi.apache.org Reporter: one...@apache.org 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: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org