Skip to content

Commit

Permalink
PI-2706 Ignore missing detailUrl (#4502)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-bcl authored Dec 18, 2024
1 parent 648ac2d commit 3775e37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Handler(
)
override fun handle(notification: Notification<HmppsDomainEvent>) {
val allocationEvent = notification.message
val detailUrl = checkNotNull(allocationEvent.detailUrl)
val detailUrl = allocationEvent.detailUrl ?: return
val allocationDetail = allocationsClient.getAllocationDetail(create(detailUrl))
try {
when (allocationDetail) {
Expand Down

0 comments on commit 3775e37

Please sign in to comment.