mirror of https://github.com/M66B/FairEmail.git
Fixed folder import compatibility
This commit is contained in:
parent
693f6d91ae
commit
9880f10a5b
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue