diff --git a/OsmAnd/src/net/osmand/plus/track/GpxEditDescriptionDialogFragment.java b/OsmAnd/src/net/osmand/plus/track/GpxEditDescriptionDialogFragment.java index 97f08c15ce..ca868bc3bc 100644 --- a/OsmAnd/src/net/osmand/plus/track/GpxEditDescriptionDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/track/GpxEditDescriptionDialogFragment.java @@ -97,7 +97,7 @@ public class GpxEditDescriptionDialogFragment extends BaseOsmAndDialogFragment { log.error(errorMessage); } MapActivity mapActivity = getMapActivity(); - if (mapActivity == null || mapActivity.getTrackMenuFragment() == null) { + if (mapActivity != null && mapActivity.getTrackMenuFragment() != null) { TrackMenuFragment trackMenuFragment = mapActivity.getTrackMenuFragment(); trackMenuFragment.updateContent(); }