Fix #142 - Crash when updating cache

This commit is contained in:
Thomas 2022-06-08 09:13:31 +02:00
parent 85da5043b0
commit 9c430e4a22
1 changed files with 3 additions and 1 deletions

View File

@ -194,7 +194,9 @@ public class StatusCache {
}
ContentValues values = new ContentValues();
values.put(Sqlite.COL_USER_ID, statusCache.user_id);
values.put(Sqlite.COL_TYPE, statusCache.type.getValue());
if (statusCache.type != null) {
values.put(Sqlite.COL_TYPE, statusCache.type.getValue());
}
values.put(Sqlite.COL_STATUS_ID, statusCache.status_id);
values.put(Sqlite.COL_STATUS, mastodonStatusToStringStorage(statusCache.status));
values.put(Sqlite.COL_UPDATED_AT, Helper.dateToString(new Date()));