Skip to content
Permalink
Browse files

Fix JENKINS-28444

Fix incorrect check for > 0 size on the bcc an cc lists.
  • Loading branch information...
Alex Earl
Alex Earl committed May 18, 2015
1 parent f72f226 commit cea631c421b7964ba710d21c3a4131d7a881f739
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/hudson/plugins/emailext/EmailRecipientUtils.java
@@ -165,11 +165,11 @@ public static void addAddressesFromRecipientList(Set<InternetAddress> to, Set<In
try {
Set<InternetAddress> internetAddresses = convertRecipientString(recipientList, envVars, EmailRecipientUtils.TO);
to.addAll(internetAddresses);
if(bcc != null && bcc.size() > 0) {
if(bcc != null) {
Set<InternetAddress> bccInternetAddresses = convertRecipientString(recipientList, envVars, EmailRecipientUtils.BCC);
bcc.addAll(bccInternetAddresses);
}
if(cc != null && cc.size() > 0) {
if(cc != null) {
Set<InternetAddress> ccInternetAddresses = convertRecipientString(recipientList, envVars, EmailRecipientUtils.CC);
cc.addAll(ccInternetAddresses);
}

0 comments on commit cea631c

Please sign in to comment.
You can’t perform that action at this time.