diff options
Diffstat (limited to 'android/src/com/mapswithme/maps/widget/RoutingLayout.java')
-rw-r--r-- | android/src/com/mapswithme/maps/widget/RoutingLayout.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/android/src/com/mapswithme/maps/widget/RoutingLayout.java b/android/src/com/mapswithme/maps/widget/RoutingLayout.java index 35367b11e8..f76dc21c61 100644 --- a/android/src/com/mapswithme/maps/widget/RoutingLayout.java +++ b/android/src/com/mapswithme/maps/widget/RoutingLayout.java @@ -274,6 +274,8 @@ public class RoutingLayout extends FrameLayout implements CompoundButton.OnCheck private void refreshTurnInstructions() { RoutingInfo info = Framework.nativeGetRouteFollowingInfo(); + if (info == null) + return; if (Framework.getRouter() == Framework.ROUTER_TYPE_VEHICLE) { @@ -305,6 +307,8 @@ public class RoutingLayout extends FrameLayout implements CompoundButton.OnCheck private void refreshRouteSetup() { RoutingInfo info = Framework.nativeGetRouteFollowingInfo(); + if (info == null) + return; mTvPrepareDistance.setText(info.distToTarget + " " + info.targetUnits.toUpperCase()); mTvPrepareTime.setText(formatTime(info.totalTimeInSeconds)); |