Hello! Docx4J is just great and the Helper AddIn rocks! But I am facing a problem, which is difficult for me to debug. I have created a DOCX using the code generated by the Helper AddIn and it seems to work fine, but when I export it to PDF format using the code below, I receive a NullPointerException:
- Code: Select all
Docx4J.toFO(foSettings, myStream, Docx4J.FLAG_EXPORT_PREFER_XSL);
The stacktrace is
java.lang.NullPointerException
at org.docx4j.convert.out.common.preprocess.ParagraphStylesInTableFix$StyleRenamer.getCellPStyle(ParagraphStylesInTableFix.java:353)
at org.docx4j.convert.out.common.preprocess.ParagraphStylesInTableFix$StyleRenamer.apply(ParagraphStylesInTableFix.java:543)
at org.docx4j.convert.out.common.preprocess.ParagraphStylesInTableFix$StyleRenamer.walkJAXBElements(ParagraphStylesInTableFix.java:592)
at org.docx4j.convert.out.common.preprocess.ParagraphStylesInTableFix$StyleRenamer.walkJAXBElements(ParagraphStylesInTableFix.java:599) ...