Skip to content

Commit

Permalink
Small fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Feb 7, 2017
1 parent 593690c commit b41958b
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -117,8 +117,12 @@ public boolean processEvent(Event event, EventHandlerType eventHandlerType, Noti
Transport transport = notificationManager.getTransport(transportName);

Message message = getMessageFromExpression(config, variables, task, result);
getLogger().trace("Sending notification via transport {}:\n{}", transportName, message);
transport.send(message, transportName, task, result);
if (message != null) {
getLogger().trace("Sending notification via transport {}:\n{}", transportName, message);
transport.send(message, transportName, task, result);
} else {
getLogger().debug("No message for transport {}, won't send anything", transportName);
}
}
} finally {
if (event instanceof ModelEvent) {
Expand Down

0 comments on commit b41958b

Please sign in to comment.