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

           Summary: java.lang.IllegalArgumentException: The end (272) must
                    not be before the start (300)
           Product: POI
           Version: 3.5-dev
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HWPF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Problem is caused by unicode in the word document.
Documents that reproduce the problem are attached.

Code to reproduce:
HWPFDocument doc = new HWPFDocument(new FileInputStream(args[0]));
Range globalRange = doc.getRange();
for (int i = 0; i < globalRange.numParagraphs(); i++) {
        Paragraph p = globalRange.getParagraph(i);
        System.out.println(p.text());
        for (int j = 0; j < p.numCharacterRuns(); j++) {
                CharacterRun characterRun = p.getCharacterRun(j);
                characterRun.text();
        }
}


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