Fix NPE
This commit is contained in:
parent
2624ecaef0
commit
8ff0d9d58d
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue