Skip to content

Commit

Permalink
fix: NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
pantasystem committed Sep 6, 2024
1 parent 32faee6 commit ea46d24
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit ea46d24

Please sign in to comment.