diff --git a/CHANGELOG.md b/CHANGELOG.md index 82c6e90ba..ca4cf6cc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ For changes to the BPDM Helm charts please consult the [changelog](charts/bpdm/C - BPDM Cleaning Service Dummy: Improve duplication check to better distinguish between incoming business partners - Apps: Updated double precision data type for Geographic-data([#978](https://github.com/eclipse-tractusx/bpdm/issues/978)) - BPDM Gate: Improved error response by adding external id details and reduced csv columns by removing support for uncategorized fields in csv file for partner upload process([#700](https://github.com/eclipse-tractusx/sig-release/issues/700)) +- BPDM Cleaning Service Dummy: Added a null check for name parts to ensure proper whitespace handling when constructing the legal name from them. - BPDM Gate: Enabled Tax Jurisdiction code to save it to the Output. ## [6.1.0] - [2024-07-15] diff --git a/bpdm-cleaning-service-dummy/src/main/kotlin/org/eclipse/tractusx/bpdm/cleaning/service/CleaningServiceDummy.kt b/bpdm-cleaning-service-dummy/src/main/kotlin/org/eclipse/tractusx/bpdm/cleaning/service/CleaningServiceDummy.kt index d87a88aab..32e59bfa9 100644 --- a/bpdm-cleaning-service-dummy/src/main/kotlin/org/eclipse/tractusx/bpdm/cleaning/service/CleaningServiceDummy.kt +++ b/bpdm-cleaning-service-dummy/src/main/kotlin/org/eclipse/tractusx/bpdm/cleaning/service/CleaningServiceDummy.kt @@ -108,7 +108,7 @@ class CleaningServiceDummy( return with(businessPartner.legalEntity){ copy( bpnReference = bpnReference.toRequestIfNotBpn(businessPartner.legalEntityReference()), - legalName = legalName ?: businessPartner.uncategorized.nameParts.joinToString(" "), + legalName = legalName ?: businessPartner.uncategorized.nameParts.takeIf { it.isNotEmpty() }?.joinToString(" "), identifiers = identifiers.takeIf { it.isNotEmpty() } ?: businessPartner.uncategorized.identifiers, states = states.takeIf { it.isNotEmpty() } ?: businessPartner.uncategorized.states, confidenceCriteria = dummyConfidenceCriteria.copy(sharedByOwner = sharedByOwner),