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); } } } } ```
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); } } } }
Created attachment 38354 [details] the sample
Can you provide the 'error'? Is it a stack trace - if so, provide the full trace?
Created attachment 38356 [details] The error
(In reply to PJ Fanning from comment #3) > Can you provide the 'error'? Is it a stack trace - if so, provide the full > trace? The Java program runs fine, but there is an error opening the output World document.
I added r1903163 - would you be able to build POI and try the change for yourself?