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)?
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 emailAddress, recipient, "test", "test");
Mail.send(
results in: .JavaExecutionE xception ActionInvoker. invoke( ActionInvoker. java:229) NullPointerExce ption Mail.handleAtta chments( Mail.java: 396) Mail.buildMessa ge(Mail. java:252) Mail.send( Mail.java: 178) Mail.send( Mail.java: 129) Mail.send( Mail.java: 114) Mail.send( Mail.java: 54) Forms.form( Forms.java: 116) Java.invokeStat ic(Java. java:129) ActionInvoker. invoke( ActionInvoker. java:138)
play.exceptions
at play.mvc.
at Invocation.HTTP Request(Play!)
Caused by: java.lang.
at play.libs.
at play.libs.
at play.libs.
at play.libs.
at play.libs.
at play.libs.
at controllers.
at play.utils.
at play.mvc.
... 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)?