Bug 65293 - NPE in HwmfPicture in init()
Summary: NPE in HwmfPicture in init()
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 5.0.x-dev
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-07 14:31 UTC by Tim Allison
Modified: 2021-05-07 15:45 UTC (History)
0 users



Attachments
Triggering file (2.57 KB, image/wmf)
2021-05-07 14:31 UTC, Tim Allison
Details

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