diff --git a/Myshipping.Application/Service/RulesEngine/RulesEngineClientService.cs b/Myshipping.Application/Service/RulesEngine/RulesEngineClientService.cs index 46dcaacc..8da78ac8 100644 --- a/Myshipping.Application/Service/RulesEngine/RulesEngineClientService.cs +++ b/Myshipping.Application/Service/RulesEngine/RulesEngineClientService.cs @@ -265,7 +265,7 @@ namespace Myshipping.Application var lineModel = _cache.GetAllCodeLane().GetAwaiter().GetResult().FirstOrDefault(t => t.Code.Equals(laneInfo.LaneCode, StringComparison.OrdinalIgnoreCase)); msgModel.Main.BusinessInfo.LaneCode = laneInfo.LaneCode; - msgModel.Main.BusinessInfo.LaneName = lineModel.CnName; + msgModel.Main.BusinessInfo.LaneName = lineModel?.CnName; } }