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

           Summary: Exception when working with table
           Product: POI
           Version: 3.5-dev
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HWPF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=24022)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24022)
creates DOC files with tables in various sizes; only the 2x2 table is OK

The attached source file creates DOC files containing a single table. Filling
in the table contents only works for the 2x2 table; all other table sizes cause
an exception to be thrown like this one:

java.lang.IllegalArgumentException: The end (15) must not be before the start
(17)
at org.apache.poi.hwpf.usermodel.Range.sanityCheckStartEnd(Range.java:247)
at org.apache.poi.hwpf.usermodel.Range.<init>(Range.java:181)
at org.apache.poi.hwpf.usermodel.Paragraph.<init>(Paragraph.java:103)
at org.apache.poi.hwpf.usermodel.Range.getParagraph(Range.java:830)
at CreateWordDocTable.test(CreateWordDocTable.java:31)

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