SetOverrides(Lvl levelNode) method of ListLevel needs the following fixes..I get NPE when I convert docx with listoverrides.
Current Code
org.docx4j.wml.RFonts fontNode = levelNode.getRPr().getRFonts();
if (fontNode != null)
{
this.font = fontNode.getHAnsi();
}
Modified Code : Null Check to avoid NPE.
org.docx4j.wml.RFonts fontNode =null;
if (levelNode.getRPr() != null)
{
fontNode = levelNode.getRPr().getRFonts();
}
if (fontNode != null)
{
this.font = fontNode.getHAnsi();
}
regards,
krithi