This commit is contained in:
Victor Shcherb 2012-06-13 00:57:54 +02:00
parent 3f12b33e78
commit b2ae6b0f0e

View file

@ -248,7 +248,7 @@ public class RouteProvider {
}
}
private void introduceFirstPoint(Location start) {
if (locations.get(0).distanceTo(start) > 200) {
if (!locations.isEmpty() && locations.get(0).distanceTo(start) > 200) {
// add start point
locations.add(0, start);
if (directions != null) {