REPO-2868 : MNT-17970

This commit is contained in:
Andreea Nechifor
2017-09-15 15:24:31 +03:00
parent ec93521c15
commit ad6b11ee69

View File

@@ -1047,8 +1047,8 @@ public class MailActionExecuter extends ActionExecuterAbstractBase
{ {
// Send the message unless we are in "testMode" // Send the message unless we are in "testMode"
if (!testMode) if (!testMode)
{ {
mailService.send(preparedMessage.getMimeMessage()); mailService.send(preparedMessage.getMimeMessage());
onSend(); onSend();
} }
else else
@@ -1057,7 +1057,7 @@ public class MailActionExecuter extends ActionExecuterAbstractBase
testSentCount++; testSentCount++;
} }
} }
catch (MailException e) catch (NullPointerException | MailException e)
{ {
onFail(); onFail();
String to = (String)ruleAction.getParameterValue(PARAM_TO); String to = (String)ruleAction.getParameterValue(PARAM_TO);