Bug 41653 - NullPointerException suggesting file extension for compressed embedded images
Summary: NullPointerException suggesting file extension for compressed embedded images
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HWPF (show other bugs)
Version: 3.0-dev
Hardware: Other other
: P2 major (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-18 16:17 UTC by Trejkaz (pen name)
Modified: 2007-03-29 10:38 UTC (History)
0 users



Attachments
Fix to populate the content before checking if the image is WMF or EMF (979 bytes, patch)
2007-02-18 16:19 UTC, Trejkaz (pen name)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Trejkaz (pen name) 2007-02-18 16:17:27 UTC
For embedded images which are compressed, suggestFileExtension() throws a
NullPointerException because the content has not been initialised.
Comment 1 Trejkaz (pen name) 2007-02-18 16:19:54 UTC
Created attachment 19611 [details]
Fix to populate the content before checking if the image is WMF or EMF
Comment 2 Nick Burch 2007-03-29 10:38:24 UTC
Thanks for this patch. I've applied it, and knocked up a quick unit test to make
sure we're now doing it all correctly.