Skip to content

Commit

Permalink
PI-2706 Ignore missing detailUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-bcl committed Dec 18, 2024
1 parent 648ac2d commit b542884
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 b542884

Please sign in to comment.