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
// This is a route to a local component hosted in this node (route
// could have been added after our previous check)
try {
localRoutingTable.getRoute(jid.getDomain()).process(packet);
routed = true;
break;
RoutableChannelHandler localRoute = localRoutingTable.getRoute(jid.getDomain());
if (localRoute != null) {
localRoute.process(packet);
routed = true;
break;
}
} catch (UnauthorizedException 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