diff --git a/OsmAnd/src/net/osmand/plus/CurrentPositionHelper.java b/OsmAnd/src/net/osmand/plus/CurrentPositionHelper.java index b974c14d61..99bd2b91f6 100644 --- a/OsmAnd/src/net/osmand/plus/CurrentPositionHelper.java +++ b/OsmAnd/src/net/osmand/plus/CurrentPositionHelper.java @@ -80,7 +80,7 @@ public class CurrentPositionHelper { } }; calculatingThread = app.getRoutingHelper().startTaskInRouteThreadIfPossible(run); - } else if (!calcThread.isAlive()) { + } else if (calcThread != null && !calcThread.isAlive()) { calculatingThread = null; } }