commit
b2662ed3cc
1 changed files with 5 additions and 1 deletions
|
@ -236,7 +236,11 @@ public class TrackSegmentFragment extends OsmAndListFragment {
|
|||
}
|
||||
|
||||
private GPXFile getGpx() {
|
||||
return getTrackActivity().getGpx();
|
||||
TrackActivity activity = getTrackActivity();
|
||||
if (activity == null) {
|
||||
return null;
|
||||
}
|
||||
return activity.getGpx();
|
||||
}
|
||||
|
||||
private GpxDataItem getGpxDataItem() {
|
||||
|
|
Loading…
Reference in a new issue