From fe5fa9ff985ea190be4c2ceb2212ad5e43b2457f Mon Sep 17 00:00:00 2001 From: Jack Wong <108699279+bergomi02@users.noreply.github.com> Date: Fri, 7 Jun 2024 10:56:15 -0700 Subject: [PATCH] initial fix --- prime-dotnet-webapi/Services/CommunitySiteService.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/prime-dotnet-webapi/Services/CommunitySiteService.cs b/prime-dotnet-webapi/Services/CommunitySiteService.cs index 9b8f8dd7af..d48321cf20 100644 --- a/prime-dotnet-webapi/Services/CommunitySiteService.cs +++ b/prime-dotnet-webapi/Services/CommunitySiteService.cs @@ -335,8 +335,10 @@ private string CompareContact(Contact currentContact, Contact newContact) } } - var currentAddress = AddressToString(currentContact.PhysicalAddress); - var newAddress = AddressToString(newContact.PhysicalAddress); + var currentAddress = currentContact.PhysicalAddress == null ? + "Same address as the site's address" : AddressToString(currentContact.PhysicalAddress); + var newAddress = newContact.PhysicalAddress == null ? + "Same address as the site's address" : AddressToString(newContact.PhysicalAddress); if (!currentAddress.Equals(newAddress)) {