Fix NPE
This commit is contained in:
parent
2dad9c897b
commit
1f36053279
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ public class RouteDirectionInfo {
|
|||
// Constructor to verify average speed always > 0
|
||||
public RouteDirectionInfo(float averageSpeed, TurnType turnType) {
|
||||
this.averageSpeed = averageSpeed == 0 ? 1 : averageSpeed;
|
||||
|
||||
this.turnType = turnType;
|
||||
}
|
||||
|
||||
public float getAverageSpeed() {
|
||||
|
|
Loading…
Reference in a new issue