Bug 57889

Summary: Fix potential NPE in XWPFParagraph.getNumFmt()
Product: POI Reporter: Tim Allison <tallison>
Component: XWPFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Bug Depends on:    
Bug Blocks: 58839    

Description Tim Allison 2015-05-05 01:38:12 UTC
For some docx files, we can get an NPE with XWPFParagraph's getNumFmt().  I found this while working on TIKA-1315.  

In support of that ticket, let's also add the ability to get the numberstartoverride from a paragraph as well as the numLevelText.  We aren't currently exercising the required classes for those so they aren't getting auto-included in our ooxml-lite jar.
Comment 1 Tim Allison 2015-05-05 01:39:56 UTC
I updated our Numbering.docx test file and added some unit tests.

r1677723.
Comment 2 Tim Allison 2015-05-28 19:05:44 UTC
CTNumLvl didn't actually make it into the jar.
Comment 3 Tim Allison 2015-05-28 19:09:04 UTC
Thanks to Moritz Dorka on TIKA-1315, we now have a document that triggers the inclusion of CTNumLvl.