Bug 65293

Summary: NPE in HwmfPicture in init()
Product: POI Reporter: Tim Allison <tallison>
Component: POI OverallAssignee: POI Developers List <dev>
Severity: normal    
Priority: P2    
Version: 5.0.x-dev   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: Triggering file

Description Tim Allison 2021-05-07 14:31:05 UTC
Created attachment 37850 [details]
Triggering file

Thanks to Andi, I integrated 5.0.1-SNAPSHOT into Tika and ran our regression tests.  I found a new-since-4.x NPE when running init on WMF files.  

This line in HwmfFont causes the issue:

int readBytes = this.readString(leis, sb, 32, this.charSet.getCharset());

In the triggering files, this.charSet is null.
Comment 1 Tim Allison 2021-05-07 15:45:33 UTC
Added null check