diff --git a/OsmAnd/res/layout/osmo_connect_to_device.xml b/OsmAnd/res/layout/osmo_connect_to_device.xml index 82eb6751ea..a202255d3a 100644 --- a/OsmAnd/res/layout/osmo_connect_to_device.xml +++ b/OsmAnd/res/layout/osmo_connect_to_device.xml @@ -60,7 +60,7 @@ android:paddingLeft="3dp" /> - + mergeGroup(OsMoGroup gr, JSONObject obj, boolean deleteUsers) { List delta = new ArrayList(); try { - parseGroup(obj.getJSONObject("group"), gr); + if(obj.has("group")) { + parseGroup(obj.getJSONObject("group"), gr); + } JSONArray arr = obj.getJSONArray(USERS); Map toDelete = new HashMap(gr.users); for (int i = 0; i < arr.length(); i++) {