diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java index 3d06d22445..9c2f5338c0 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/RouteInfoWidgetsFactory.java @@ -398,8 +398,10 @@ public class RouteInfoWidgetsFactory { } mx = ro.getMaximumSpeed(direction); } - } else { + } else if (rh != null) { mx = rh.getCurrentMaxSpeed(); + } else { + mx = 0f; } if (cachedSpeed != mx) { cachedSpeed = mx;