diff --git a/src/main/org/apache/tools/ant/taskdefs/email/MimeMailer.java b/src/main/org/apache/tools/ant/taskdefs/email/MimeMailer.java index 54514b9843..6a55312d3a 100644 --- a/src/main/org/apache/tools/ant/taskdefs/email/MimeMailer.java +++ b/src/main/org/apache/tools/ant/taskdefs/email/MimeMailer.java @@ -280,6 +280,10 @@ private static InternetAddress[] internetAddresses(final Vector li final List addrs = new ArrayList<>(); for (final EmailAddress addr : list) { + if (addr.getAddress().isEmpty()) { + // skip + continue; + } final String name = addr.getName(); addrs.add((name == null) ? new InternetAddress(addr.getAddress())