From 858b81c18e43d7fc76094dc51424f9ca28576f45 Mon Sep 17 00:00:00 2001 From: "Joseph.Dundon" Date: Fri, 8 Nov 2024 10:02:42 +0000 Subject: [PATCH] PI-2575 further nullable fields fix --- .../justice/digital/hmpps/messaging/CommonPlatformHearing.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/common-platform-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/CommonPlatformHearing.kt b/projects/common-platform-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/CommonPlatformHearing.kt index 2573adcc63..de708f19bd 100644 --- a/projects/common-platform-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/CommonPlatformHearing.kt +++ b/projects/common-platform-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/CommonPlatformHearing.kt @@ -20,7 +20,7 @@ data class Hearing( data class ProsecutionCase( val id: String, - val initiationCode: String, + val initiationCode: String? = null, val prosecutionCaseIdentifier: ProsecutionCaseIdentifier, val defendants: List, val caseStatus: String? = null, @@ -48,7 +48,7 @@ data class Defendant( data class Offence( val id: String, val offenceDefinitionId: String? = null, - val offenceCode: String, + val offenceCode: String? = null, val offenceTitle: String, val wording: String, val offenceLegislation: String,