diff --git a/app/src/main/java/com/keylesspalace/tusky/db/InstanceEntity.kt b/app/src/main/java/com/keylesspalace/tusky/db/InstanceEntity.kt index aba14f58..95ce1fc3 100644 --- a/app/src/main/java/com/keylesspalace/tusky/db/InstanceEntity.kt +++ b/app/src/main/java/com/keylesspalace/tusky/db/InstanceEntity.kt @@ -34,12 +34,12 @@ data class InstanceEntity( class Converters { @TypeConverter - fun jsonToList(emojiListJson: String): List { + fun jsonToList(emojiListJson: String?): List? { return Gson().fromJson(emojiListJson, object : TypeToken>() {}.type) } @TypeConverter - fun listToJson(emojiList: List): String { + fun listToJson(emojiList: List?): String { return Gson().toJson(emojiList) } } \ No newline at end of file