Fix exception
This commit is contained in:
parent
46dd3a9160
commit
afcdb30234
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