double check units are in profile

This commit is contained in:
Milos Kozak 2017-07-03 11:14:30 +02:00
parent 5a27f9afa1
commit ebf56d0032

View file

@ -125,6 +125,12 @@ public class Profile {
}
public JSONObject getData() {
if (!json.has("units"))
try {
json.put("units", units);
} catch (JSONException e) {
e.printStackTrace();
}
return json;
}