Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
Description
We're seeing the attached NullPointerException from the mailer plugin. This is because this call can return null as documented here.
If it's important, our use case is we're trying to send an email after the failure of a Build Flow job. As of version 0.11, the plugin no longer creates or maintains a workspace.
Thank you!
--------------------------------
Publisher hudson.tasks.Mailer aborted due to exception
java.lang.NullPointerException
at hudson.tasks.MailSender.createFailureMail(MailSender.java:278)
at hudson.tasks.MailSender.getMail(MailSender.java:153)
at hudson.tasks.MailSender.execute(MailSender.java:101)
at hudson.tasks.Mailer.perform(Mailer.java:137)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:714)
at hudson.model.Build$BuildExecution.post2(Build.java:182)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:663)
at hudson.model.Run.execute(Run.java:1725)
at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:231)
Attachments
Issue Links
- is duplicated by
-
JENKINS-9939 Publisher hudson.tasks.Mailer aborted due to exception
-
- Resolved
-
https://github.com/jenkinsci/mailer-plugin/commit/38c84e2320eea7074c76f242e7b7d5e1abcac431 ?