Skip to content

Commit

Permalink
Fix JENKINS-28444
Browse files Browse the repository at this point in the history
Fix incorrect check for > 0 size on the bcc an cc lists.
  • Loading branch information
Alex Earl committed May 18, 2015
1 parent f72f226 commit cea631c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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);
}
Expand Down

0 comments on commit cea631c

Please sign in to comment.