Skip to content

Commit

Permalink
BirthdayButlerService: NPE fixed?
Browse files Browse the repository at this point in the history
  • Loading branch information
kreinhard committed Aug 15, 2023
1 parent b913c69 commit 12eb58a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ class BirthdayButlerService {
val foundUsers = mutableListOf<AddressDO>()
addressList.forEach { address ->
if (activeUsers.any { user ->
address.firstName?.trim().equals(user.firstname?.trim(), ignoreCase = true) &&
address.name?.trim().equals(user.lastname?.trim(), ignoreCase = true)
address.firstName?.trim()?.equals(user.firstname?.trim(), ignoreCase = true) == true &&
address.name?.trim()?.equals(user.lastname?.trim(), ignoreCase = true) == true
}) {
foundUsers.add(address)
}
Expand Down

0 comments on commit 12eb58a

Please sign in to comment.