Skip to content

Commit

Permalink
Merge pull request eclipse-tractusx#466 from eclipse-tractusx/fix/gat…
Browse files Browse the repository at this point in the history
…e/nullable-address-type

Fix: Mapping AddressType from Generic entity to Output DTO in Gate
  • Loading branch information
nicoprow authored Sep 15, 2023
2 parents b5c1302 + 6d54e33 commit 3e31f4d
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 3e31f4d

Please sign in to comment.