Prevent crash

This commit is contained in:
M66B 2021-02-28 07:52:15 +01:00
parent 58e798d049
commit 025ebcb730
2 changed files with 2 additions and 1 deletions

View File

@ -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");

View File

@ -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;