Skip to content

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
michaz committed Oct 14, 2017
1 parent 0f68b7c commit 1c26193
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -442,7 +442,7 @@ private Iterable<StopTime> getInterpolatedStopTimesForTrip(String trip_id) {

private void insertInboundTransfers(String fromStopId, String from_route_id, int minimumTransferTime, SortedSet<Fun.Tuple2<Integer, Integer>> toStopTimelineNode) {
for (TimelineNodeIdWithTripId entry : arrivalTimelineNodes.get(fromStopId)) {
if (from_route_id == null || from_route_id.equals(feed.trips.get(entry.tripId).route_id)) {
if (from_route_id == null || from_route_id.equals(entry.routeId)) {
int arrivalTime = times.get(entry.timelineNodeId);
SortedSet<Fun.Tuple2<Integer, Integer>> tailSet = toStopTimelineNode.tailSet(new Fun.Tuple2<>(arrivalTime + minimumTransferTime, -1));
if (!tailSet.isEmpty()) {
Expand Down
2 changes: 1 addition & 1 deletion reader-gtfs/src/test/java/com/graphhopper/RealtimeIT.java
Expand Up @@ -164,7 +164,7 @@ public void testSkipTransferStop() {
}

@Test
public void testExtraRoute() {
public void testExtraTrip() {
final double FROM_LAT = 36.914893, FROM_LON = -116.76821; // NADAV stop
final double TO_LAT = 36.868446, TO_LON = -116.784582; // BEATTY_AIRPORT stop
GHRequest ghRequest = new GHRequest(
Expand Down

0 comments on commit 1c26193

Please sign in to comment.