Fix possible NPE found with msg-file from CommonCrawl

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1725334 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2016-01-18 20:16:23 +00:00
parent fe359afec3
commit a369daa432
2 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ public class OutlookTextExtactor extends POIOLE2TextExtractor {
for(AttachmentChunks att : msg.getAttachmentFiles()) {
StringChunk name = att.attachLongFileName;
if (name == null) name = att.attachFileName;
String attName = name.getValue();
String attName = name == null ? null : name.getValue();
if(att.attachMimeTag != null &&
att.attachMimeTag.getValue() != null) {

Binary file not shown.