Bug 60373 - TableCell.getTextHeight() returns Null pointer Exception
Summary: TableCell.getTextHeight() returns Null pointer Exception
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: XSLF (show other bugs)
Version: 3.15-FINAL
Hardware: PC All
: P2 major (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-15 06:29 UTC by apatra
Modified: 2016-11-18 23:34 UTC (History)
1 user (show)



Attachments
This Exception is generated while accessing TableCell.getTextHeight() in the above code. (5.90 KB, text/plain)
2016-11-15 06:29 UTC, apatra
Details

Note You need to log in before you can comment on or make changes to this bug.
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.