diff --git a/app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt b/app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt index ddacd9993..81623a192 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/model/Account.kt @@ -191,8 +191,8 @@ class Account( ) } - fun calculateIfNoteWasZappedByAccount(zappedNote: Note): Boolean { - return zappedNote.isZappedBy(userProfile(), this) == true + fun calculateIfNoteWasZappedByAccount(zappedNote: Note?): Boolean { + return zappedNote?.isZappedBy(userProfile(), this) == true } fun calculateZappedAmount(zappedNote: Note?): BigDecimal {