Fix NullPointerException that occurs if there are no more turns with lanes indicated.

This commit is contained in:
Saikrishna Arcot 2014-12-05 23:00:12 -05:00
parent d527eb4fe9
commit 08dc488850

View file

@ -409,6 +409,10 @@ public class RouteResultPreparation {
}
}
if (nextSegment == null) {
continue;
}
TurnType currentTurn = currentSegment.getTurnType();
TurnType nextTurn = nextSegment.getTurnType();