From 478a19b6ec23b6ddc1e7b5b1996004fe32026749 Mon Sep 17 00:00:00 2001 From: ansons Date: Wed, 21 Oct 2020 15:13:10 -0400 Subject: [PATCH] fix(transfers): don't bail out at stop 0 Fixes #636 cherry-picked in from broader PR#637 gradle version hard-coded to bugfix v6.0.1 --- build.gradle | 2 +- src/main/java/com/conveyal/r5/profile/FastRaptorWorker.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index d562139f2..3b50f7455 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ plugins { group = 'com.conveyal' // set version to `git describe --tags --always --first-parent`, plus '.dirty' if local changes are present. -version 'v6.0.0' +version 'v6.0.1' java { sourceCompatibility = JavaVersion.VERSION_11 diff --git a/src/main/java/com/conveyal/r5/profile/FastRaptorWorker.java b/src/main/java/com/conveyal/r5/profile/FastRaptorWorker.java index b2989f634..9c47cff4c 100644 --- a/src/main/java/com/conveyal/r5/profile/FastRaptorWorker.java +++ b/src/main/java/com/conveyal/r5/profile/FastRaptorWorker.java @@ -843,7 +843,7 @@ private void doTransfers (RaptorState state) { // Compute transfers only from stops updated pre-transfer within this departure minute / randomized schedule. // These transfers then update the post-transfers bitset to avoid concurrent modification while iterating. for (int stop = state.nonTransferStopsUpdated.nextSetBit(0); - stop > 0; + stop > -1; stop = state.nonTransferStopsUpdated.nextSetBit(stop + 1) ) { TIntList transfersFromStop = transit.transfersForStop.get(stop);