Bug 60574 - Rare NPE in ListTables when ListData can't be found
Summary: Rare NPE in ListTables when ListData can't be found
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HWPF (show other bugs)
Version: 3.16-dev
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-11 15:58 UTC by Tim Allison
Modified: 2017-01-11 16:01 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 2017-01-11 15:58:44 UTC
On TIKA-2198, Seva Alekseyev submitted a document that triggers an NPE.

java.lang.NullPointerException: 
at org.apache.poi.hwpf.model.ListTables.getLevel:141
at org.apache.poi.hwpf.usermodel.Paragraph.newParagraph:125
at org.apache.poi.hwpf.usermodel.Range.getParagraph:766
at org.apache.tika.parser.microsoft.WordExtractor.parse:178

I confirmed we are still getting this NPE.  Let's add a null check.
Comment 1 Tim Allison 2017-01-11 16:01:58 UTC
r1778320