From fde1882d67b8b8fd7211b289352b52125544897b Mon Sep 17 00:00:00 2001 From: Jannis Mohlin Tsiroyannis Date: Tue, 17 Oct 2023 09:12:52 +0200 Subject: [PATCH] Update housekeeping/src/main/groovy/whelk/housekeeping/NotificationSender.groovy Co-authored-by: Anders Jensen-Urstad --- .../main/groovy/whelk/housekeeping/NotificationSender.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/housekeeping/src/main/groovy/whelk/housekeeping/NotificationSender.groovy b/housekeeping/src/main/groovy/whelk/housekeeping/NotificationSender.groovy index 28d903ec92..4fb29d2f18 100644 --- a/housekeeping/src/main/groovy/whelk/housekeeping/NotificationSender.groovy +++ b/housekeeping/src/main/groovy/whelk/housekeeping/NotificationSender.groovy @@ -65,7 +65,7 @@ class NotificationSender extends HouseKeeper { for (Map settings : allUserSettingStrings) { if (!settings["notificationEmail"]) continue - settings?.requestedNotifications.each { request -> + settings?.requestedNotifications?.each { request -> if (!request instanceof Map) return if (!request["heldBy"])