Fixed
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Sean S.
Sean S.Priority
Labels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Created 14 September 2016 at 02:49
Updated 10 October 2016 at 20:37
Resolved 10 October 2016 at 20:37
CFMAIL produces a NPE when its type is set to HTML and the body of the email is empty. The generated email remains stuck in the mail spool.
The error is reproducible with script and tags as below:
"ERROR","Thread-28522","09/13/2016","21:24:28","","mail;java.lang.NullPointerException;lucee.runtime.exp.NativeException: java.lang.NullPointerException
at java.lang.String.getBytes(String.java:940)
at lucee.runtime.net.smtp.StringDataSource.getInputStream(StringDataSource.java:52)
at javax.activation.DataHandler.writeTo(DataHandler.java:304)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1485)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1773)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1119)
at lucee.runtime.net.smtp.SMTPSender.run(SMTPSender.java:61)
Caused by: java.lang.NullPointerException