<changes>
<release version="3.8-beta5" date="2011-??-??">
+ <action dev="poi-developers" type="fix">51974 - Avoid HWPF issue when identifying the picture type</action>
<action dev="poi-developers" type="fix">52035 - Fix signed issue with very large word 6 files</action>
<action dev="poi-developers" type="fix">51949 - Avoid NPE on double close of ZipFileZipEntrySource</action>
<action dev="poi-developers" type="fix">51950 - XWPF fix for footnotes not always being present in a document</action>
*/
public byte[] getRawContent()
{
- if ( _picfAndOfficeArtData.getBlipRecords().size() != 1 )
+ if ( _picfAndOfficeArtData == null ||
+ _picfAndOfficeArtData.getBlipRecords()== null ||
+ _picfAndOfficeArtData.getBlipRecords().size() != 1 )
return new byte[0];
EscherRecord escherRecord = _picfAndOfficeArtData.getBlipRecords().get(
public PictureType suggestPictureType()
{
- if ( _picfAndOfficeArtData.getBlipRecords().size() != 1 )
+ if ( _picfAndOfficeArtData == null ||
+ _picfAndOfficeArtData.getBlipRecords()== null ||
+ _picfAndOfficeArtData.getBlipRecords().size() != 1 )
return PictureType.UNKNOWN;
EscherRecord escherRecord = _picfAndOfficeArtData.getBlipRecords().get(