Prevent crash

pull/194/head
M66B 4 years ago
parent 58e798d049
commit 025ebcb730

@ -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…
Cancel
Save