- Fix NPE when getting user's fork without repository list caching (issue 182)\r
- Fix internal error on folder history links (issue 192)\r
- Fixed incorrect icon file name for .doc files (issue 200)\r
+ - Do not queue emails with no recipients (issue 201)\r
\r
additions: \r
- Option to force client-side basic authentication instead of form-based authentication if web.authenticateViewPages=true (issue 222)\r
* @param toAddresses\r
*/\r
public void sendMail(String subject, String message, String... toAddresses) {\r
+ if (toAddresses == null || toAddresses.length == 0) {\r
+ logger.debug(MessageFormat.format("Dropping message {0} because there are no recipients", subject));\r
+ return;\r
+ }\r
try {\r
Message mail = mailExecutor.createMessage(toAddresses);\r
if (mail != null) {\r
* @param toAddresses\r
*/\r
public void sendHtmlMail(String subject, String message, String... toAddresses) {\r
+ if (toAddresses == null || toAddresses.length == 0) {\r
+ logger.debug(MessageFormat.format("Dropping message {0} because there are no recipients", subject));\r
+ return;\r
+ }\r
try {\r
Message mail = mailExecutor.createMessage(toAddresses);\r
if (mail != null) {\r