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:
parent
693f6d91ae
commit
9880f10a5b
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue