Enabling option "send to individuals who broke the build" leads to NPE

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Enabling option "Send separate e-mails to individuals who broke the build" for
      particular job leads to NPE at the end of the build:

      ava.lang.NullPointerException
      at javax.mail.internet.InternetAddress.parse(InternetAddress.java:595)
      at javax.mail.internet.InternetAddress.parse(InternetAddress.java:555)
      at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:91)
      at hudson.tasks.Mailer.createEmptyMail(Mailer.java:296)
      at hudson.tasks.Mailer.createDefaultMail(Mailer.java:147)
      at hudson.tasks.Mailer.getMail(Mailer.java:140)
      at hudson.tasks.Mailer.perform(Mailer.java:82)
      at hudson.model.Build$1.post(Build.java:347)
      at hudson.model.Run.run(Run.java:523)
      at hudson.model.Build.run(Build.java:289)
      at hudson.model.Executor.run(Executor.java:60)

      And indeed, Hudson tries to find out user's email, but for most users, they
      probably didn't configure their email in User View (is that the place to set up
      the email for users?), so user.getProperty().getAddress() returns null and
      attempt to send an e-mail to that address leads to NPE

            Assignee:
            Unassigned
            Reporter:
            vsizikov
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: