Fix exception

This commit is contained in:
Alexander Sytnyk 2017-07-31 13:09:59 +03:00
parent 46dd3a9160
commit afcdb30234

View file

@ -236,7 +236,11 @@ public class TrackSegmentFragment extends OsmAndListFragment {
} }
private GPXFile getGpx() { private GPXFile getGpx() {
return getTrackActivity().getGpx(); TrackActivity activity = getTrackActivity();
if (activity == null) {
return null;
}
return activity.getGpx();
} }
private GpxDataItem getGpxDataItem() { private GpxDataItem getGpxDataItem() {