mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-23 01:00:04 +02:00
Fix #142 - Crash when updating cache
This commit is contained in:
parent
85da5043b0
commit
9c430e4a22
1 changed files with 3 additions and 1 deletions
|
@ -194,7 +194,9 @@ public class StatusCache {
|
||||||
}
|
}
|
||||||
ContentValues values = new ContentValues();
|
ContentValues values = new ContentValues();
|
||||||
values.put(Sqlite.COL_USER_ID, statusCache.user_id);
|
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_ID, statusCache.status_id);
|
||||||
values.put(Sqlite.COL_STATUS, mastodonStatusToStringStorage(statusCache.status));
|
values.put(Sqlite.COL_STATUS, mastodonStatusToStringStorage(statusCache.status));
|
||||||
values.put(Sqlite.COL_UPDATED_AT, Helper.dateToString(new Date()));
|
values.put(Sqlite.COL_UPDATED_AT, Helper.dateToString(new Date()));
|
||||||
|
|
Loading…
Reference in a new issue