diff --git a/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyStageItineraryFragment.java b/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyStageItineraryFragment.java index a8a48d62f7..756de81837 100644 --- a/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyStageItineraryFragment.java +++ b/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyStageItineraryFragment.java @@ -74,7 +74,9 @@ public class SherpafyStageItineraryFragment extends SherpafyStageInfoFragment im private GPXFile gpx; @Override protected Void doInBackground(Void... params) { - gpx = GPXUtilities.loadGPXFile(app, stage.gpxFile); + if (stage.gpxFile != null){ + gpx = GPXUtilities.loadGPXFile(app, stage.gpxFile); + } return null; } protected void onPostExecute(Void result) {