1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 18:27:43 +00:00

Fixed folder import compatibility

This commit is contained in:
M66B 2019-02-28 11:04:34 +00:00
parent 693f6d91ae
commit 9880f10a5b

View file

@ -290,7 +290,9 @@ public class EntityFolder implements Serializable {
public static EntityFolder fromJSON(JSONObject json) throws JSONException {
EntityFolder folder = new EntityFolder();
folder.id = json.getLong("id");
if (json.has("id"))
folder.id = json.getLong("id");
folder.name = json.getString("name");
folder.type = json.getString("type");