poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Richter <jrichte...@gmail.com>
Subject Internal IndexOutOfBoundsException on HSSFSheet.autoSizeColumn()
Date Thu, 11 Mar 2010 19:32:44 GMT

if i set autoSizeColumn() at the end of the workbook creation i get this:

java.lang.ArrayIndexOutOfBoundsException: -1
	at
org.apache.poi.hssf.usermodel.HSSFDataFormat.getFormat(HSSFDataFormat.java:147)
	at
org.apache.poi.hssf.usermodel.HSSFCellStyle.getDataFormatString(HSSFCellStyle.java:131)
	at
org.apache.poi.hssf.usermodel.HSSFCellStyle.getDataFormatString(HSSFCellStyle.java:108)
	at
org.apache.poi.hssf.usermodel.HSSFSheet.autoSizeColumn(HSSFSheet.java:1772)
	at
org.apache.poi.hssf.usermodel.HSSFSheet.autoSizeColumn(HSSFSheet.java:1662)

The rows are existent, dunno why the exception occurs.
Is this a bug?

(I'm using POI 3.6)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message