(cherry picked from commit 8ff0d9d)
This commit is contained in:
PavelRatushny 2017-07-27 18:16:56 +03:00
parent 34110abc74
commit 36ba3938b9

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()
);