BugFix for NPE on null ZappedNote

recommendation-engine
Vitor Pamplona 2023-05-05 13:26:55 -04:00
rodzic 5b6b6f19e5
commit 49a8778975
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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 {