public void Test50075() { HWPFDocument doc = HWPFTestDataSamples.OpenSampleFile("Bug50075.doc"); Range range = doc.GetRange(); Assert.AreEqual(1, range.NumParagraphs); Paragraph para1 = (Paragraph)range.GetParagraph(0); ListEntry entry = new ListEntry(para1._paragraphs[0], (Range)para1._parent, doc.GetListTables()); ListFormatOverride override1 = doc.GetListTables().GetOverride(entry.GetIlfo()); ListLevel level = doc.GetListTables().GetLevel(override1.GetLsid(), entry.GetIlvl()); // the bug reproduces, if this call fails with NullPointerException level.GetNumberText(); }