https://bz.apache.org/bugzilla/show_bug.cgi?id=69927
Bug ID: 69927
Summary: NPE in HwmfBitmapDib.readColors()
Product: POI
Version: unspecified
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: POI Overall
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 40145
--> https://bz.apache.org/bugzilla/attachment.cgi?id=40145&action=edit
the actual problematic file
NullPointerException: Cannot invoke
"org.apache.poi.hwmf.record.HwmfBitmapDib$BitCount.ordinal()" because
"this.headerBitCount" is null
at
org.apache.poi.hwmf.record.HwmfBitmapDib.readColors(HwmfBitmapDib.java:351)
at
org.apache.poi.hwmf.record.HwmfBitmapDib.init(HwmfBitmapDib.java:238)
at
org.apache.poi.hwmf.record.HwmfFill$WmfDibStretchBlt.init(HwmfFill.java:908)
at
org.apache.poi.hwmf.usermodel.HwmfPicture.<init>(HwmfPicture.java:128)
at org.apache.tika.parser.microsoft.WMFParser.parse(WMFParser.java:68)
Maybe return 0 if headerBitCount is null?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]