poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55473] New: DataFormatter.formatCellValue(cell) throws IllegalArgumentException when the format is mm/dd/yyyy;;; and value is 0
Date Fri, 23 Aug 2013 18:11:05 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=55473

            Bug ID: 55473
           Summary: DataFormatter.formatCellValue(cell) throws
                    IllegalArgumentException when the format is
                    mm/dd/yyyy;;; and value is 0
           Product: POI
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POI Overall
          Assignee: dev@poi.apache.org
          Reporter: narayan1ap@gmail.com

Created attachment 30756
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30756&action=edit
A Xlsx file which has first row formatted with custom format mm/dd/yyyy;;; and
contains value 0

DataFormatter.formatCellValue(cell) throws IllegalArgumentException when the
format of a cell is is mm/dd/yyyy;;; and value is 0.

Actually df.formatCellValue(cell); this API returns correct date for non zero
numbers and negative numbers it returns negactive values But for value 0 for
some reason it is throwing IllegalArgumentExeption.

-- 
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


Mime
View raw message