diff --git a/modules/data/src/main/java/net/pantasystem/milktea/data/infrastructure/note/impl/sqlite/NoteEntity.kt b/modules/data/src/main/java/net/pantasystem/milktea/data/infrastructure/note/impl/sqlite/NoteEntity.kt index 28b8f5fdb7..302d0dc70b 100644 --- a/modules/data/src/main/java/net/pantasystem/milktea/data/infrastructure/note/impl/sqlite/NoteEntity.kt +++ b/modules/data/src/main/java/net/pantasystem/milktea/data/infrastructure/note/impl/sqlite/NoteEntity.kt @@ -541,8 +541,8 @@ data class NoteWithRelation( null } else { Poll( - expiresAt = note.pollExpiresAt!!, - multiple = note.pollMultiple!!, + expiresAt = note.pollExpiresAt, + multiple = note.pollMultiple ?: false, choices = pollChoices.map { Poll.Choice(it.index, it.text, it.votes, it.isVoted) }.sortedBy { it.index }