mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 06:31:17 +00:00
Prevent crash
This commit is contained in:
parent
58e798d049
commit
025ebcb730
2 changed files with 2 additions and 1 deletions
|
@ -279,6 +279,7 @@ public abstract class DB extends RoomDatabase {
|
|||
for (int a = 0; a < jaccounts.length(); a++) {
|
||||
JSONObject jaccount = jaccounts.getJSONObject(a);
|
||||
EntityAccount account = EntityAccount.fromJSON(jaccount);
|
||||
account.created = new Date().getTime();
|
||||
account.id = db.account().insertAccount(account);
|
||||
|
||||
JSONArray jfolders = jaccount.getJSONArray("folders");
|
||||
|
|
|
@ -137,7 +137,7 @@ public class EntityAccount extends EntityOrder implements Serializable {
|
|||
public Long quota_usage;
|
||||
public Long quota_limit;
|
||||
|
||||
public Long created;
|
||||
public Long created = 0L;
|
||||
public Boolean tbd;
|
||||
public Long thread;
|
||||
public String state;
|
||||
|
|
Loading…
Reference in a new issue