Bug 60373

Summary: TableCell.getTextHeight() returns Null pointer Exception
Product: POI Reporter: apatra
Component: XSLFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: major CC: apatra
Priority: P2    
Version: 3.15-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: This Exception is generated while accessing TableCell.getTextHeight() in the above code.

Description apatra 2016-11-15 06:29:18 UTC
Created attachment 34446 [details]
This Exception is generated while accessing TableCell.getTextHeight() in the above code.

I have a table which needs to be populated with some data.While accessing the cells height using TableCell.getTextHeight() inside the row of that table it is throwing null pointer exception. Despite of the fact that the cell has data and this behaviour is completely random.This behaviour is also produced when accessing TableCell.getAnchor(),which end up with NPE.Even the two consecutive rows have equal data(every cell data is equal with respect to datatype and value respectively),NPE is sometimes produced for one of the Rows without any clue.
Here i have attached StackTrace.
Comment 1 Andreas Beeker 2016-11-18 23:34:35 UTC
Fixed via r1770447

Thank you for bringing this up.