empty data for date type throws exception in JXLHelper.createCell
-----------------------------------------------------------------
Key: JBSEAM-3682
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3682
Project: Seam
Issue Type: Bug
Components: Excel
Affects Versions: 2.1.0.GA
Reporter: Ted Jenkins
If data type is missing/empty string, and it is cellType date, a String exception will be
thrown. I'm thinking it should probably just fail gracefully, like so:
case date:
if(null == data || data.equals("")) {
return new Label(column, row, data.toString(), cellFormat);
} else {
return new DateTime(column, row, (Date) data, cellFormat);
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira