diff --git a/src/documentation/content/xdocs/status.xml b/src/documentation/content/xdocs/status.xml index 0d5075e90..665a6cb18 100644 --- a/src/documentation/content/xdocs/status.xml +++ b/src/documentation/content/xdocs/status.xml @@ -34,6 +34,7 @@ + 52664 - MAPIMessage may not always have name chunks when checking for 7 bit encodings 52649 - fixed namespace issue in WordToFoConverter 52385 - avoid trancated array and vector data when reading OLE properties 52662 - CharacterRun NPE fix when fetching symbol fonts, where no fonts are defined diff --git a/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java b/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java index 570bc6d62..7c600e701 100644 --- a/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java +++ b/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java @@ -451,13 +451,17 @@ public class MAPIMessage extends POIDocument { } } } - for(Chunk c : nameIdChunks.getAll()) { - if(c instanceof StringChunk) { - if( ((StringChunk)c).getType() == Types.ASCII_STRING ) { - return true; + + if (nameIdChunks!=null) { + for(Chunk c : nameIdChunks.getAll()) { + if(c instanceof StringChunk) { + if( ((StringChunk)c).getType() == Types.ASCII_STRING ) { + return true; + } } } } + for(RecipientChunks rc : recipientChunks) { for(Chunk c : rc.getAll()) { if(c instanceof StringChunk) {