Commit 3b42538c authored by Dave Cridland's avatar Dave Cridland

Merge pull request #534 from dchinmay/dchinmay-topic-1

NullPointerException in RoutingTableImpl.
parents 15222622 cc9aaa91
...@@ -418,9 +418,12 @@ public class RoutingTableImpl extends BasicModule implements RoutingTable, Clust ...@@ -418,9 +418,12 @@ public class RoutingTableImpl extends BasicModule implements RoutingTable, Clust
// This is a route to a local component hosted in this node (route // This is a route to a local component hosted in this node (route
// could have been added after our previous check) // could have been added after our previous check)
try { try {
localRoutingTable.getRoute(jid.getDomain()).process(packet); RoutableChannelHandler localRoute = localRoutingTable.getRoute(jid.getDomain());
routed = true; if (localRoute != null) {
break; localRoute.process(packet);
routed = true;
break;
}
} catch (UnauthorizedException e) { } catch (UnauthorizedException e) {
Log.error("Unable to route packet " + packet.toXML(), e); Log.error("Unable to route packet " + packet.toXML(), e);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment