We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f374aae commit 58ea9baCopy full SHA for 58ea9ba
src/main/java/org/simplejavamail/mailer/Mailer.java
@@ -271,7 +271,7 @@ public boolean validate(final Email email)
271
throw new MailerException(MailerException.MISSING_DISPOSITIONNOTIFICATIONTO);
272
} else if (email.isUseReturnReceiptTo() && email.getReturnReceiptTo() == null) {
273
throw new MailerException(MailerException.MISSING_RETURNRECEIPTTO);
274
- } else if (emailAddressCriteria != null) {
+ } else if (!emailAddressCriteria.isEmpty()) {
275
if (!EmailAddressValidator.isValid(email.getFromRecipient().getAddress(), emailAddressCriteria)) {
276
throw new MailerException(format(MailerException.INVALID_SENDER, email));
277
}
0 commit comments