Archived
0

fix join with empty route

This commit is contained in:
iMoHax
2015-11-09 16:59:11 +03:00
parent 06156c62b1
commit d8da2b0eb0

View File

@@ -174,6 +174,7 @@ public class Route implements Comparable<Route> {
public void join(Route route){
LOG.trace("Join route {}", route);
if (route.isEmpty()) return;
RouteEntry end = entries.get(entries.size()-1);
if (route.entries.get(0).is(end.getVendor())){
entries.remove(entries.size()-1);