You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2009/10/28 20:25:49 UTC

DO NOT REPLY [Bug 45322] POI reportSheet.autoSizeColumn java.lang.ArrayIndexOutOfBoundsException: -1 HSSFDataFormat.getFormat

https://issues.apache.org/bugzilla/show_bug.cgi?id=45322

--- Comment #5 from michael.ramirez@apollogrp.edu 2009-10-28 12:25:46 UTC ---
FYI: The following line of code was added to bypass the exception:

if ( null != row.getCell(i) && null != row.getCell(i).getCellStyle() &&
row.getCell(i).getCellStyle().getDataFormat() > -1 )

With that line removed, the exception occurs at:

sheet.autoSizeColumn((short)i);

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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