mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-10 19:13:03 +02:00
Prevent crash
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user