NPE when sending plain text email
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
play framework | Status tracked in 1.0 | |||||
1.0 |
Fix Released
|
Undecided
|
Nicolas Leroux | |||
1.1 |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
If I create just plain text view (.txt) for email, I get an NPE:
play.exceptions
at play.mvc.
at Invocation.HTTP Request(Play!)
Caused by: java.lang.
at javax.mail.
at javax.mail.
at javax.mail.
at javax.mail.
at play.libs.
at play.libs.
at play.mvc.
It occurs because of this line in Mail.java:
if ("text/
Variable 'body' is in this case null and the actual mail is in 'alternate' variable
I am using Play 1.0
Changed in play: | |
assignee: | nobody → Nicolas (nicolas-lunatech) |
Fix committed in 654.