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