Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.5-incubating
-
None
-
Linux, JDK1.6
Description
Create a spreadsheet with a cell. Call
cell.setValueType(OfficeValueTypeAttribute.Value.TIME.toString());
then call
cell.getTimeValue();
gives
java.lang.NullPointerException
at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1234)
at java.text.DateFormat.parse(DateFormat.java:335)
at org.odftoolkit.odfdom.doc.table.OdfTableCell.parseString(OdfTableCell.java:920)
at org.odftoolkit.odfdom.doc.table.OdfTableCell.getTimeValue(OdfTableCell.java:886)
I'd expect null if no value is set. Blowing its brains out is not considered a reasonable reply.
The same thing using DATE valueType doesn't cause this AFAIK