From b22aee25c920e4fdbae2605c737d3273d8b0afbf Mon Sep 17 00:00:00 2001 From: GaidamakUA Date: Wed, 25 May 2016 16:43:26 +0300 Subject: [PATCH] Fixes #2536 --- OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java b/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java index e9a3f5eb12..8febaac9b3 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java @@ -187,7 +187,7 @@ public class WaypointDialogHelper { } } - if (descr.equals(pointDescription)) { + if (Algorithms.objectEquals(descr, pointDescription)) { pointDescription = ""; } if (dist > 0 && !Algorithms.isEmpty(pointDescription)) {