Skip to content

Commit 7220aa6

Browse files
committed
LinkGraph bugfix
1 parent c8ac65c commit 7220aa6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

backend/src/de/unifreiburg/informatik/cobweb/routing/parsing/gtfs/GtfsRealisticTimeExpandedHandler.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ public void complete() throws IOException {
157157

158158
while (sequenceIter.hasNext()) {
159159
tripStopNodes = sequenceIter.next();
160+
// The standard allows gaps in-between the external sequence indices. We
161+
// do not, skip null entries.
162+
if (tripStopNodes == null) {
163+
continue;
164+
}
165+
160166
// Connect last departure to current arrival node
161167
final N arrNode = tripStopNodes.getArrNode();
162168
final int arrTime = tripStopNodes.getArrTime();

0 commit comments

Comments
 (0)