|Summary:||TableCell.getTextHeight() returns Null pointer Exception|
|Component:||XSLF||Assignee:||POI Developers List <dev>|
|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.