Add checking for null
This commit is contained in:
parent
b0d9d6663a
commit
bcac4eae27
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue