When the document contains numbered paragraph with no number (strange, but real), reading NumberText from that ListLevel fails with following exception: java.lang.NullPointerException at java.lang.String.<init>(String.java:177) at org.apache.poi.hwpf.model.ListLevel.getNumberText(ListLevel.java:209) at dird.dokument.parser.ListUtils.getFormattedNumber(ListUtils.java:88) ... In the constructor, when the numberTextLength is 0, it initializes _numberText to null. I will upload a patch with a test case.
Created attachment 26154 [details] Patch to fix the bug with testcase
Created attachment 26155 [details] New files not included in the diff
Applied in r1022456 Yegor