You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2016/03/23 17:37:54 UTC

[Bug 59222] New: XSSFSheet.getCellComments() raises NPE when sheet has no cell comments

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: onealj@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-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 59222] XSSFSheet.getCellComments() raises NPE when sheet has no cell comments

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59222

Javen O'Neal <on...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Javen O'Neal <on...@apache.org> ---
Fixed in r1736347.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org