poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48269] New: [PATCH] Exception occurs while try getErrorCellString() from XSSFCell
Date Tue, 24 Nov 2009 08:38:47 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48269

           Summary: [PATCH] Exception occurs while try
                    getErrorCellString() from XSSFCell
           Product: POI
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: Petr.Udalau@exigenservices.com


When we try get error code from the cell with contains formula that returns
Error we get exception:
java.lang.IllegalStateException: Cannot get a error value from a formula cell
    at org.apache.poi.xssf.usermodel.XSSFCell.typeMismatch(XSSFCell.java:781)
    at
org.apache.poi.xssf.usermodel.XSSFCell.getErrorCellString(XSSFCell.java:580)
    at
org.apache.poi.xssf.usermodel.XSSFCell.getErrorCellValue(XSSFCell.java:596)


It is caused by wrong type identification in method getErrorCellString().

Solution for this problem and simle test see in attachment.

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


Mime
View raw message