From 3597e2aa1281f0e517c5ed8a9fe7e8f72030c744 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 08 六月 2020 14:57:07 +0800
Subject: [PATCH] 2020-06-08-1

---
 HDL_ON/Entity/Room.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/Entity/Room.cs b/HDL_ON/Entity/Room.cs
index c7fb302..7884d78 100644
--- a/HDL_ON/Entity/Room.cs
+++ b/HDL_ON/Entity/Room.cs
@@ -56,7 +56,7 @@
             List<Function> funcList = new List<Function>();
             foreach (var f in DB_ResidenceData.residenceData.functionList.functions)
             {
-                if (f.roomIdList.Contains(sid))
+                if (f.roomIdList.Contains(sid) && sid != null)
                 {
                     funcList.Add(f);
                 }

--
Gitblit v1.8.0