|Summary:||NullPointerException suggesting file extension for compressed embedded images|
|Product:||POI||Reporter:||Trejkaz (pen name) <trejkaz>|
|Component:||HWPF||Assignee:||POI Developers List <dev>|
|Attachments:||Fix to populate the content before checking if the image is WMF or EMF|
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.