Skip to content

Commit a8edfe8

Browse files
fixed so that null would not be a string (#586)
1 parent b1af538 commit a8edfe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/models/hmpps/InductionSchedule.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class InductionScheduleDeserializer : JsonDeserializer<InductionSchedule>() {
152152
val inductionPerformedByRole = node["inductionPerformedByRole"]?.takeUnless { it.isNull }?.asText()
153153
val inductionPerformedAtPrison = node["inductionPerformedAtPrison"]?.takeUnless { it.isNull }?.asText()
154154
val version = node["version"]?.asInt()
155-
val exemptionReason = node["exemptionReason"]?.asText()
155+
val exemptionReason = node["exemptionReason"]?.takeUnless { it.isNull }?.asText()
156156

157157
return InductionSchedule(
158158
deadlineDate = deadlineDate,

0 commit comments

Comments
 (0)