https://issues.apache.org/bugzilla/show_bug.cgi?id=57352
Bug ID: 57352
Summary: NPE in OutlookTextExtactor
Product: POI
Version: 3.10-FINAL
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: HSMF
Assignee: [email protected]
Reporter: [email protected]
The mothod getText() throws a NullPointerException when extracting text of a
msg file with an attachment that has no LongFileName:
...
// Display attachment names
// To get the attachments, use ExtractorFactory
for(AttachmentChunks att : msg.getAttachmentFiles()) {
String ats = att.attachLongFileName.getValue();
if(att.attachMimeTag != null &&
att.attachMimeTag.getValue() != null) {
ats = att.attachMimeTag.getValue() + " = " + ats;
}
s.append("Attachment: " + ats + "\n");
}
...
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]