From e5e5bdebe0500a0d1cedc2a8f6ace6c4f48d4091 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Mon, 13 Mar 2023 11:58:24 +0300 Subject: [PATCH] fix Osago modification is null --- ELT.Client/Managers/Insurance/PreRequestManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ELT.Client/Managers/Insurance/PreRequestManager.cs b/ELT.Client/Managers/Insurance/PreRequestManager.cs index 2be14ad..2487db4 100644 --- a/ELT.Client/Managers/Insurance/PreRequestManager.cs +++ b/ELT.Client/Managers/Insurance/PreRequestManager.cs @@ -30,7 +30,8 @@ namespace ELT.Client.Managers.Insurance eltPreData.Brand = mappedCars.Mark; eltPreData.Model = mappedCars.Model; - eltPreData.Modification = mappedCars.Modification.Name; + if (mappedCars?.Modification?.Name != null) + eltPreData.Modification = mappedCars.Modification.Name; //CAR return eltPreData;