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

           Summary: OperandResolver parseDouble
                    StringIndexOutOfBoundsException
           Product: POI
           Version: 3.7-dev
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


When I use OperandResolver.parseDouble to parse a string like excel and I write 

OperandResolver.parseDouble("-");

 then occurs the following bug:

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String
index out of range: 0
    at java.lang.String.charAt(Unknown Source)
    at
org.apache.poi.hssf.record.formula.eval.OperandResolver.parseDouble(OperandResolver.java:247)



PS: I know this will never use by anybody in this way, but if we calculate a
formula with a reference to a minus, then occur exactly this, because the
formulae use also OperandResolver.parseDouble

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to