Skip to content

Commit

Permalink
[FIXED JENKINS-10300] Empty emailAddress causes Mailer error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssogabe committed Jul 11, 2011
1 parent 4a02e17 commit 72f6f68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.html
Expand Up @@ -66,6 +66,9 @@
<li class=bug>
ToolCommandInstaller: Fix CR/LF and always make it Unix style.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-9963">issue 9963</a>)
<li class=bug>
Empty emailAddress causes Mailer error.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-10300">issue 10300</a>)
<li class=rfe>
PAM authentication now works with CLI login mechanism.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-9681">issue 9681</a>)
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/tasks/Mailer.java
Expand Up @@ -478,7 +478,7 @@ public UserProperty(String emailAddress) {

@Exported
public String getAddress() {
if(emailAddress!=null)
if(Util.fixEmptyAndTrim(emailAddress)!=null)
return emailAddress;

// try the inference logic
Expand Down

0 comments on commit 72f6f68

Please sign in to comment.