This commit is contained in:
Victor Shcherb 2015-01-06 20:06:21 +01:00
parent 5472efe072
commit 7a7d2b325a

View file

@ -80,7 +80,7 @@ public class CurrentPositionHelper {
} }
}; };
calculatingThread = app.getRoutingHelper().startTaskInRouteThreadIfPossible(run); calculatingThread = app.getRoutingHelper().startTaskInRouteThreadIfPossible(run);
} else if (!calcThread.isAlive()) { } else if (calcThread != null && !calcThread.isAlive()) {
calculatingThread = null; calculatingThread = null;
} }
} }