Fix NullPointerException that occurs if there are no more turns with lanes indicated.
This commit is contained in:
parent
d527eb4fe9
commit
08dc488850
1 changed files with 4 additions and 0 deletions
|
@ -409,6 +409,10 @@ public class RouteResultPreparation {
|
|||
}
|
||||
}
|
||||
|
||||
if (nextSegment == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
TurnType currentTurn = currentSegment.getTurnType();
|
||||
TurnType nextTurn = nextSegment.getTurnType();
|
||||
|
||||
|
|
Loading…
Reference in a new issue