Fix #9772
This commit is contained in:
parent
e90a7127ad
commit
a4098fb234
1 changed files with 1 additions and 1 deletions
|
@ -743,7 +743,7 @@ public class MeasurementEditingContext {
|
|||
locations.add(l);
|
||||
}
|
||||
pair.second.setTrkPtIndex(locations.size() - 1);
|
||||
if (i < size - 2) {
|
||||
if (i < size - 2 && !locations.isEmpty()) {
|
||||
locations.remove(locations.size() - 1);
|
||||
}
|
||||
route.addAll(data.segments);
|
||||
|
|
Loading…
Reference in a new issue