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

           Summary: IndexOutOfBoundsException when reading
                    numCharacterRuns() for a read-back DOC file
           Product: POI
           Version: 3.7-dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HWPF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


When you read, write and read back a document, if fails with the following
exception when you try to read numCharacterRuns() for any paragraph:

java.lang.IndexOutOfBoundsException: Index: 8, Size: 8
    at java.util.ArrayList.RangeCheck(ArrayList.java:547)
    at java.util.ArrayList.get(ArrayList.java:322)
    at org.apache.poi.hwpf.usermodel.Range.findRange(Range.java:976)
    at org.apache.poi.hwpf.usermodel.Range.initCharacterRuns(Range.java:925)
    at org.apache.poi.hwpf.usermodel.Range.numCharacterRuns(Range.java:378)
    at
org.apache.poi.hwpf.usermodel.TestLists.testWriteRead(TestLists.java:211)
    ...

I will attach a diff to TestLists test (included in POI svnrep) that tests
this.

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