https://bz.apache.org/bugzilla/show_bug.cgi?id=66187

            Bug ID: 66187
           Summary: MS document is error by XWPFDocument to write  when
                    XWPFRun call method getTextHightlightColor() or
                    getEmphasisMark
           Product: POI
           Version: 5.2.2-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XWPF
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

The sample:


```Java
    public static void main(String[] args) throws Exception {
        String template =
XwpfUtils.class.getResource("/template-word/template.docx").getFile();
        try (FileInputStream argIS = new FileInputStream(template)) {
            try (XWPFDocument doc = new XWPFDocument(argIS)) {
                XWPFRun run =  doc.getParagraphs().get(0).getRuns().get(0);
                //TODO bug
                run.getTextHightlightColor(); //or run.getEmphasisMark()  also
causes the same error

                try (OutputStream out = new FileOutputStream("output.docx")) {
                    doc.write(out);
                }
             }
        }
    }

```

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