Add checking for null

This commit is contained in:
PavelRatushnyi 2017-10-03 17:47:28 +03:00
parent b0d9d6663a
commit bcac4eae27

View file

@ -317,10 +317,11 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
pnt.setLatitude(bug.getLatitude()); pnt.setLatitude(bug.getLatitude());
pnt.setLongitude(bug.getLongitude()); pnt.setLongitude(bug.getLongitude());
return osmbugsUtil.commit(pnt, text, action); return osmbugsUtil.commit(pnt, text, action);
} else { } else if (point != null) {
osmbugsUtil = local; osmbugsUtil = local;
return osmbugsUtil.modify(point, text); return osmbugsUtil.modify(point, text);
} }
return null;
} }
protected void onPostExecute(OsmBugResult obj) { protected void onPostExecute(OsmBugResult obj) {