Skip to content

Commit

Permalink
fix(gate): nullable type mismatch on 'addressType' when mapping Posta…
Browse files Browse the repository at this point in the history
…lAddress entity to output DTO
  • Loading branch information
nicoprow committed Sep 15, 2023
1 parent b5c1302 commit 6d54e33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class BusinessPartnerMappings {

private fun toPostalAddressOutputDto(entity: PostalAddress) =
BusinessPartnerPostalAddressOutputDto(
addressType = entity.addressType,
addressType = entity.addressType!!, //An entity of stage output is expected to have a non-null addressType
physicalPostalAddress = entity.physicalPostalAddress.let(::toPhysicalPostalAddressDto),
alternativePostalAddress = entity.alternativePostalAddress?.let(::toAlternativePostalAddressDto)
)
Expand Down

0 comments on commit 6d54e33

Please sign in to comment.