Skip to content

Commit

Permalink
CAMEL-5830 fix the NPE when the shutdown the route which is not start…
Browse files Browse the repository at this point in the history
…ed rightly.

git-svn-id: https://svn.apache.org/repos/asf/camel/branches/camel-2.9.x@1414859 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
davsclaus committed Nov 28, 2012
1 parent abcb994 commit 738c7e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1811,7 +1811,7 @@ protected synchronized void stopRouteService(RouteService routeService, boolean
protected void logRouteState(Route route, String state) {
if (log.isInfoEnabled()) {
if (route.getConsumer() != null) {
log.info("Route: {} {}, was consuming from: {}", route.getId(), state, route.getConsumer().getEndpoint());
log.info("Route: {} {}, was consuming from: {}", new Object[]{route.getId(), state, route.getConsumer().getEndpoint()});
} else {
log.info("Route: {} {}.", route.getId(), state);
}
Expand Down

0 comments on commit 738c7e8

Please sign in to comment.