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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • core
    • None
    • Platform: All, OS: All

      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

            Unassigned Unassigned
            vsizikov vsizikov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: