From 57c3cb23b1c147847b47022a3975999cf5f381d1 Mon Sep 17 00:00:00 2001 From: Denis Date: Fri, 5 Sep 2014 13:16:01 +0300 Subject: [PATCH] Fixed null pointer on load gpx file --- .../osmand/plus/sherpafy/SherpafyStageItineraryFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {