From 3775e372a30cdd334212ced67b42d4a9ab0b40cb Mon Sep 17 00:00:00 2001 From: Marcus Aspin Date: Wed, 18 Dec 2024 13:33:03 +0000 Subject: [PATCH] PI-2706 Ignore missing detailUrl (#4502) --- .../kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/workforce-allocations-to-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt b/projects/workforce-allocations-to-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt index cb46e3cf9d..8ae1135482 100644 --- a/projects/workforce-allocations-to-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt +++ b/projects/workforce-allocations-to-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt @@ -35,7 +35,7 @@ class Handler( ) override fun handle(notification: Notification) { val allocationEvent = notification.message - val detailUrl = checkNotNull(allocationEvent.detailUrl) + val detailUrl = allocationEvent.detailUrl ?: return val allocationDetail = allocationsClient.getAllocationDetail(create(detailUrl)) try { when (allocationDetail) {