Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22695

Mailer plugin NullPointerException

    Details

    • Similar Issues:

      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

            Activity

            Show
            jglick Jesse Glick added a comment - https://github.com/jenkinsci/mailer-plugin/commit/38c84e2320eea7074c76f242e7b7d5e1abcac431 ?
            Hide
            jglick Jesse Glick added a comment -

            Believed fixed with that change.

            Show
            jglick Jesse Glick added a comment - Believed fixed with that change.

              People

              • Assignee:
                stephenconnolly Stephen Connolly
                Reporter:
                johndoes_43147 John Doe
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: