Bug 56644 - NullPointerException in XSSFCell Constructor
Summary: NullPointerException in XSSFCell Constructor
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 3.10-FINAL
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-19 07:40 UTC by Simon
Modified: 2014-12-22 11:22 UTC (History)
1 user (show)



Attachments
XLSX Example (33.61 KB, application/vnd.openxmlformats)
2014-06-19 07:40 UTC, Simon
Details
Create Cell example (1.02 KB, text/plain)
2014-06-19 07:41 UTC, Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon 2014-06-19 07:40:35 UTC
Created attachment 31730 [details]
XLSX Example

Under some circumstances, the XSSFCell constructor XSSFCell(XSSFRow row, CTCell cell) throws a null pointer exception at line 110 (release poi-src-3.10-FINAL-20140208)

    _cellNum = row.getCell(prevNum-1).getColumnIndex() + 1;


See the attached java and xls files
Comment 1 Simon 2014-06-19 07:41:11 UTC
Created attachment 31731 [details]
Create Cell example
Comment 2 Dominik Stadler 2014-12-22 11:22:27 UTC
Fixed via r1647291, we now explicitly set the missing cell policy internally when creating new cells to avoid receiving null at this point.