Skip to content

Commit

Permalink
[JENKINS-16849] disable isMailerPropertySet
Browse files Browse the repository at this point in the history
need to be able to check Mailer.UserProperty#address is set without invoking MailAddressResolver
  • Loading branch information
ndeloof committed Feb 19, 2013
1 parent e5e28f1 commit 65c0021
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/hudson/plugins/git/GitChangeSet.java
Expand Up @@ -286,10 +286,10 @@ public User findOrCreateUser(String csAuthor, String csAuthorEmail, boolean crea
private boolean isMailerPropertySet(User user) {
boolean isPropertySet = false;
UserProperty property = user.getProperty(Mailer.UserProperty.class);
if (property != null) {
if(!StringUtils.isEmpty(property.getAddress())) {
if (property == null) {
// if(!StringUtils.isEmpty(property.getAddress())) {
isPropertySet = true;
}
// }
}

return isPropertySet;
Expand Down

0 comments on commit 65c0021

Please sign in to comment.