Comment 4 for bug 460177

Revision history for this message
Lawrence McAlpin (lmcalpin) wrote :

I may be mistaken about the infinite loop. That may have occurred before I upgraded to play-1.0-r781. But there's definitely a problem in the latest cut of the code we can download or acquire via git, which my patch corrected.

The call
Mail.send(emailAddress, recipient, "test", "test");

results in:
play.exceptions.JavaExecutionException
        at play.mvc.ActionInvoker.invoke(ActionInvoker.java:229)
        at Invocation.HTTP Request(Play!)
Caused by: java.lang.NullPointerException
        at play.libs.Mail.handleAttachments(Mail.java:396)
        at play.libs.Mail.buildMessage(Mail.java:252)
        at play.libs.Mail.send(Mail.java:178)
        at play.libs.Mail.send(Mail.java:129)
        at play.libs.Mail.send(Mail.java:114)
        at play.libs.Mail.send(Mail.java:54)
        at controllers.Forms.form(Forms.java:116)
        at play.utils.Java.invokeStatic(Java.java:129)
        at play.mvc.ActionInvoker.invoke(ActionInvoker.java:138)
        ... 1 more

because it thinks there are attachments, even though I have not provided any. A unit test would be good. Should I file this as a new bug since the symptom is different (though the cause, varargs/override confusion is the same)?