Summary: | NullPointerException on HSSFCell.getCellComment() | ||
---|---|---|---|
Product: | POI | Reporter: | Lionel <lionel.joye> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: | Java Class and Excel file to run the bug. |
Here is the StackTrace : Exception in thread "main" java.lang.NullPointerException at org.apache.poi.hssf.usermodel.HSSFComment.getColumn(HSSFComment.java:170) at org.apache.poi.hssf.usermodel.HSSFSheet.lookForComment(HSSFSheet.java:2118) at org.apache.poi.hssf.usermodel.HSSFSheet.findCellComment(HSSFSheet.java:2103) at org.apache.poi.hssf.usermodel.HSSFCell.getCellComment(HSSFCell.java:1022) at org.apache.poi.hssf.usermodel.HSSFCell.getCellComment(HSSFCell.java:70) at poi.bugs.BugGetCellComment.main(BugGetCellComment.java:58) |
Created attachment 31553 [details] Java Class and Excel file to run the bug. On some of my Excel files, POI throws a NulPointerException on HSSFCell.getCellComment() method. I have made a synthetic Excel file and a sunthetic Java class, which are in the attachment, to present this bug.