diff --git a/app/src/main/java/app/fedilab/android/client/entities/app/StatusCache.java b/app/src/main/java/app/fedilab/android/client/entities/app/StatusCache.java index 1e137cf5..11c2b00d 100644 --- a/app/src/main/java/app/fedilab/android/client/entities/app/StatusCache.java +++ b/app/src/main/java/app/fedilab/android/client/entities/app/StatusCache.java @@ -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()));