openplans/OpenTripPlanner — Issue #626: exception when itineraries have no legs
Author: andrewbyrd
Created: 2012-03-08 16:58:11+00:00
State: open
Labels: backend, bug

```
SEVERE: exception planning trip:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:604)
at java.util.ArrayList.get(ArrayList.java:382)
at org.opentripplanner.api.ws.PlanGenerator.generate(PlanGenerator.java:141)
at org.opentripplanner.api.ws.Planner.getItineraries(Planner.java:282)
at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
```