Bug 57889 - Fix potential NPE in XWPFParagraph.getNumFmt()
Summary: Fix potential NPE in XWPFParagraph.getNumFmt()
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: XWPF (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks: 58839
  Show dependency tree
 
Reported: 2015-05-05 01:38 UTC by Tim Allison
Modified: 2016-01-12 20:26 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.