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