mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
removed return statement if route is empty
now, visitors run even route is empty, thus visitors need to deal with empty routes
This commit is contained in:
parent
4e23697fc8
commit
fe8df8ca65
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ public class RouteActivityVisitor implements RouteVisitor{
|
|||
@Override
|
||||
public void visit(VehicleRoute route) {
|
||||
if(visitors.isEmpty()) return;
|
||||
if(route.isEmpty()) return;
|
||||
// if(route.isEmpty()) return;
|
||||
begin(route);
|
||||
for(TourActivity act : route.getTourActivities().getActivities()){
|
||||
visit(act);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue