From bcac4eae2738bec0d579e29104b2afc1b6fb00f3 Mon Sep 17 00:00:00 2001 From: PavelRatushnyi Date: Tue, 3 Oct 2017 17:47:28 +0300 Subject: [PATCH] Add checking for null --- OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java b/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java index 4d3c085ba8..7452609509 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java @@ -317,10 +317,11 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider pnt.setLatitude(bug.getLatitude()); pnt.setLongitude(bug.getLongitude()); return osmbugsUtil.commit(pnt, text, action); - } else { + } else if (point != null) { osmbugsUtil = local; return osmbugsUtil.modify(point, text); } + return null; } protected void onPostExecute(OsmBugResult obj) {