simple-java-mail
simple-java-mail copied to clipboard
EmailConverter NullPointerException getDate
Version: 7.1.1
Hi everyone,
I have got an error when trying to read the HTML Body of specific Outlook E-mails (.msg file) I would upload the file but it's not possible here.
Code:
email = EmailConverter.outlookMsgToEmail(new ByteArrayInputStream((byte[]) getValue("DOC_IMAGE")));
Stacktrace:
java.lang.NullPointerException at org.simplejavamail.outlookmessageparser.model.OutlookMessage.getDate(OutlookMessage.java:865) at org.simplejavamail.internal.outlooksupport.converter.OutlookEmailConverter.buildEmailFromOutlookMessage(OutlookEmailConverter.java:102) at org.simplejavamail.internal.outlooksupport.converter.OutlookEmailConverter.outlookMsgToEmailBuilder(OutlookEmailConverter.java:85) at org.simplejavamail.converter.EmailConverter.outlookMsgToEmailBuilder(EmailConverter.java:239) at org.simplejavamail.converter.EmailConverter.outlookMsgToEmail(EmailConverter.java:221) at org.simplejavamail.converter.EmailConverter.outlookMsgToEmail(EmailConverter.java:213)
Is it possible for you to share the email to me personally? I would like to investigate.
Bump
Any update on a sample I can investigate? Will close this soon otherwise as non-actionable.
Any update on a sample I can investigate? Will close this soon otherwise as non-actionable.
Hello, sorry for the late response. I need to search for the mail. I will respond you again on Monday.
I found something and have sent it to you by mail.
Thanks, I'll have a look.
I just did a test with the .msg file you sent me, but that won't even open in Outlook itself, and it won't read in outlook-message-parser, the library used by Simple Java Mail, either:
Closing this until I have something real to go on.