This commit is contained in:
PavelRatushny 2017-07-27 18:16:56 +03:00
parent 2624ecaef0
commit 8ff0d9d58d

View file

@ -285,7 +285,7 @@ public class TrackSegmentFragment extends OsmAndListFragment {
final OsmandSettings settings = app.getSettings();
settings.setMapLocationToShow(location.getLatitude(), location.getLongitude(),
settings.getLastKnownMapZoom(),
new PointDescription(PointDescription.POINT_TYPE_WPT, getGpxDataItem().getFile().getName()),
new PointDescription(PointDescription.POINT_TYPE_WPT, getGpxDataItem() != null ? getGpxDataItem().getFile().getName() : ""),
false,
getRect()
);