openplans/OpenTripPlanner — Issue #614: SEVERE: exception planning trip - NullPointerException
Author: mattwigway
Created: 2012-02-29 01:54:24+00:00
State: open
Labels: routing

When I build an SF graph using [this graph-builder.xml](https://gist.github.com/1936826) and plan a trip starting at the SFO terminal, I get:
```
SEVERE: exception planning trip:
java.lang.NullPointerException
at org.opentripplanner.routing.impl.StreetVertexIndexServiceImpl.getClosestVertex(StreetVertexIndexServiceImpl.java:244)
at org.opentripplanner.routing.impl.StreetVertexIndexServiceImpl.getClosestVertex(StreetVertexIndexServiceImpl.java:186)
```
[full trace](https://gist.github.com/1936840).

I think it's being snapped to the restricted-access roads inside the airport, see [OpenStreetMap](http://osm.org/go/TZG~f_vm). Starting anywhere towards the end of the long, spider-like terminals seems to cause the issue.