From fdf212256c45fb502c4f28d233a1d766a150fb75 Mon Sep 17 00:00:00 2001 From: gg12 darfren Date: Tue, 20 Feb 2024 12:32:52 +0400 Subject: [PATCH] k --- .../IceCreamShopFileImplement/Implements/OrderStorage.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IceCreamShop/IceCreamShopFileImplement/Implements/OrderStorage.cs b/IceCreamShop/IceCreamShopFileImplement/Implements/OrderStorage.cs index 64a4b19..983f9d1 100644 --- a/IceCreamShop/IceCreamShopFileImplement/Implements/OrderStorage.cs +++ b/IceCreamShop/IceCreamShopFileImplement/Implements/OrderStorage.cs @@ -88,6 +88,8 @@ model) public OrderViewModel AccessIceCreamStorage(OrderViewModel model) { + if (model == null) + return null; foreach (var iceCream in source.IceCreams) { if (iceCream.Id == model.IceCreamId)