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:
parent
fe359afec3
commit
a369daa432
@ -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) {
|
||||
|
BIN
test-data/hsmf/logsat.com_signatures_valid.msg
Executable file
BIN
test-data/hsmf/logsat.com_signatures_valid.msg
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user