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)

          [JENKINS-22695] Mailer plugin NullPointerException

          John Doe created issue -
          John Doe made changes -
          Labels New: build-flow
          John Doe made changes -
          Labels Original: build-flow New: build-flow mailer
          John Doe made changes -
          Labels Original: build-flow mailer New: build-flow mailer nullpointer
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-9939 [ JENKINS-9939 ]
          Jesse Glick made changes -
          Assignee New: Stephen Connolly [ stephenconnolly ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Stephen Connolly made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 154806 ] New: JNJira + In-Review [ 207635 ]

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

              Created:
              Updated:
              Resolved: