From 2c1cff5b88bdb8c65c639e96ba15beb3b1c961f9 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Thu, 11 Jul 2024 13:15:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9SI=20=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TaskManageSISubmittedService.cs | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskManageSISubmittedService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskManageSISubmittedService.cs index ab6a7ac0..1c489430 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskManageSISubmittedService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskManageSISubmittedService.cs @@ -1511,8 +1511,25 @@ namespace Myshipping.Application if (l.PropertyType == typeof(string)) { - string st1 = (bkVal as string).AdjustString(); - string st2 = (siVal as string).AdjustString(); + string st1 = string.Empty; + string st2 = string.Empty; + + if (bkVal == null) + { + st1 = ""; + } + else { + st1 = (bkVal as string).AdjustString(); + } + + if (siVal == null) + { + st2 = ""; + } + else + { + st2 = (siVal as string).AdjustString(); + } if (!st1.Equals(st2)) {