Fix possible exception

This commit is contained in:
Vitaliy 2020-07-26 19:36:50 +03:00
parent a4866b2d1b
commit 012fbc599d

View file

@ -782,7 +782,7 @@ public class TrackActivityFragmentAdapter implements TrackBitmapDrawerListener {
if (activity != null && gpxSplitType != null && gpxFile != null) { if (activity != null && gpxSplitType != null && gpxFile != null) {
int timeSplit = 0; int timeSplit = 0;
double distanceSplit = 0; double distanceSplit = 0;
if (!gpxFile.showCurrentTrack) { if (gpxSplitType != GpxSplitType.NO_SPLIT && !gpxFile.showCurrentTrack) {
timeSplit = this.timeSplit.get(selectedSplitInterval); timeSplit = this.timeSplit.get(selectedSplitInterval);
distanceSplit = this.distanceSplit.get(selectedSplitInterval); distanceSplit = this.distanceSplit.get(selectedSplitInterval);
} }