Bug 50688 - NPE with POI when parsing word docs
Summary: NPE with POI when parsing word docs
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HWPF (show other bugs)
Version: unspecified
Hardware: Macintosh All
: P2 major (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-29 14:01 UTC by John Wang
Modified: 2011-01-31 04:29 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Wang 2011-01-29 14:01:21 UTC
stacktrace: 


Caused by: java.lang.NullPointerException 
at org.apache.poi.hwpf.sprm.ParagraphSprmUncompressor.uncompressPAP(ParagraphSprmUncompressor.java:47) 
at org.apache.poi.hwpf.model.StyleSheet.createPap(StyleSheet.java:241) 
at org.apache.poi.hwpf.model.StyleSheet.<init>(StyleSheet.java:116) 
at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:229) 
at org.apache.poi.hwpf.HWPFDocument.<init>(HWPFDocument.java:131) 
at org.apache.tika.parser.microsoft.WordExtractor.parse(WordExtractor.java:61) 
at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:182) 
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:197) 

The word file I am trying to parse is: 

http://www2.ed.gov/programs/titleiparta/parentinvguid.doc
Comment 1 Maxim Valyanskiy 2011-01-31 04:29:43 UTC
fixed in r1065535