From 3c1646a85f085cb0dd8dd386cdcdcd5a221adc4d Mon Sep 17 00:00:00 2001
From: zongzhibin <zongzhibin@weben-smart.com>
Date: 周五, 22 11月 2024 13:11:58 +0800
Subject: [PATCH] Merge branch 'master' of http://222.71.245.114:9086/r/LA24030-LuLI_PackageLine

---
 SDA/iWareSda/Common/SdaHelper.cs |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/SDA/iWareSda/Common/SdaHelper.cs b/SDA/iWareSda/Common/SdaHelper.cs
index d0f3e1e..3b853ee 100644
--- a/SDA/iWareSda/Common/SdaHelper.cs
+++ b/SDA/iWareSda/Common/SdaHelper.cs
@@ -43,7 +43,14 @@
                     }
                     else
                     {
-                        proValues = t1_pro.GetValue(t1, null).ToString();
+                        if (t1_pro.GetValue(t1, null) == null)
+                        {
+                            proValues = "";
+                        }
+                        else
+                        {
+                            proValues = t1_pro.GetValue(t1, null).ToString();
+                        }
                         arr = proValues.Split(WareSdaStruct.PLCDBADDRESS_SEPARATE);
                         if (arr.Length != 2)
                         {

--
Gitblit v1.9.3