Fix crash
This commit is contained in:
parent
50f9ddbcd5
commit
0762c6cf63
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ public class GpxUiHelper {
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
|
|
||||||
int position = selectedPosition[0];
|
int position = selectedPosition[0];
|
||||||
if (position != -1) {
|
if (position != -1 && position < list.size()) {
|
||||||
if (showCurrentGpx && position == 0) {
|
if (showCurrentGpx && position == 0) {
|
||||||
callbackWithObject.processResult(null);
|
callbackWithObject.processResult(null);
|
||||||
app.getSettings().LAST_SELECTED_GPX_TRACK_FOR_NEW_POINT.set(null);
|
app.getSettings().LAST_SELECTED_GPX_TRACK_FOR_NEW_POINT.set(null);
|
||||||
|
|
Loading…
Reference in a new issue