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

           Summary: RichText change causes  out of bounds exception
           Product: POI
           Version: unspecified
          Platform: HP
        OS/Version: Windows Vista
            Status: NEW
          Severity: major
          Priority: P1
         Component: POI Overall
        AssignedTo: [email protected]
        ReportedBy: [email protected]


If we do something like... 

richText[k].setRawText(richText[k].getRawText().replace("[SYSDATE2]",
"REPLACED_DATE2")); 

We'll get a string out of bounds exception generated from within the setRawText
method. eg. 

Problem with slide show String index out of range: 51 
java.lang.StringIndexOutOfBoundsException: String index out of range: 51 
        at java.lang.String.substring(String.java:1765) 
        at
org.apache.poi.hslf.usermodel.RichTextRun.getRawText(RichTextRun.java:158) 
        at
org.apache.poi.hslf.model.TextRun.changeTextInRichTextRun(TextRun.java:435) 
        at
org.apache.poi.hslf.usermodel.RichTextRun.setRawText(RichTextRun.java:174) 
        at com.globoforce.scheduled.App.main(App.java:34)

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