From 1bf3056ab34f3404672d6aabd903868afd58dc2b Mon Sep 17 00:00:00 2001 From: Dominic NEED Date: Tue, 3 Dec 2024 09:44:37 +0000 Subject: [PATCH] Hotfix for when contact models are null --- .../Pages/Trusts/Contacts/_DisplayContact.cshtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DfE.FindInformationAcademiesTrusts/Pages/Trusts/Contacts/_DisplayContact.cshtml b/DfE.FindInformationAcademiesTrusts/Pages/Trusts/Contacts/_DisplayContact.cshtml index 68274a3fd..d1414c669 100644 --- a/DfE.FindInformationAcademiesTrusts/Pages/Trusts/Contacts/_DisplayContact.cshtml +++ b/DfE.FindInformationAcademiesTrusts/Pages/Trusts/Contacts/_DisplayContact.cshtml @@ -6,7 +6,7 @@
Name
- @if (!string.IsNullOrWhiteSpace(Model.FullName)) + @if (Model != null && !string.IsNullOrWhiteSpace(Model.FullName)) {
@Model.FullName
} @@ -19,7 +19,7 @@
Email address
- @if (!string.IsNullOrWhiteSpace(Model.Email)) + @if (Model != null && !string.IsNullOrWhiteSpace(Model.Email)) {
@Model.Email