Bug 56644

Summary: NullPointerException in XSSFCell Constructor
Product: POI Reporter: Simon <buehlmann>
Component: XSSFAssignee: POI Developers List <dev>
Severity: normal CC: buehlmann
Priority: P2    
Version: 3.10-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: XLSX Example
Create Cell example

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.