Fix out of bounds
This commit is contained in:
parent
342f918299
commit
f094c01269
1 changed files with 3 additions and 2 deletions
|
@ -272,8 +272,9 @@ public class GpxUiHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (SelectedGpxFile selectedGpx : selectedGpxFiles) {
|
for (SelectedGpxFile selectedGpx : selectedGpxFiles) {
|
||||||
if (!selectedGpx.getGpxFile().showCurrentTrack) {
|
GPXFile gpxFile = selectedGpx.getGpxFile();
|
||||||
list.add(new GPXInfo(selectedGpx.getGpxFile().path.substring(gpxDirLength + 1), selectedGpx.getGpxFile().modifiedTime, 0));
|
if (!gpxFile.showCurrentTrack && gpxFile.path.length() > gpxDirLength + 1) {
|
||||||
|
list.add(new GPXInfo(gpxFile.path.substring(gpxDirLength + 1), gpxFile.modifiedTime, 0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue