Quantcast

[Issue 165] New - Enabling option "send to individuals who broke the build" leads to NPE

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Issue 165] New - Enabling option "send to individuals who broke the build" leads to NPE

vsizikov
https://hudson.dev.java.net/issues/show_bug.cgi?id=165
                 Issue #|165
                 Summary|Enabling option "send to individuals who broke the bui
                        |ld" leads to NPE
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P2
            Subcomponent|www
             Assigned to|issues@hudson
             Reported by|vsizikov






------- Additional comments from [hidden email] Fri Nov 17 18:56:33 +0000 2006 -------
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

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...