From 509e7b543f8a8770cf09dff97000acf78140c119 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期一, 06 一月 2020 09:46:13 +0800 Subject: [PATCH] 2019、1、6 --- ZigbeeApp/Shared/Phone/Device/Room/RoomManagement.cs | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Room/RoomManagement.cs b/ZigbeeApp/Shared/Phone/Device/Room/RoomManagement.cs index 38ef3a0..cae7db4 100644 --- a/ZigbeeApp/Shared/Phone/Device/Room/RoomManagement.cs +++ b/ZigbeeApp/Shared/Phone/Device/Room/RoomManagement.cs @@ -150,6 +150,10 @@ var roomScrolView = new VerticalScrolViewLayout { }; bodyFrameLayout.AddChidren(roomScrolView); var roomList = Common.Room.CurrentRoom.GetRoomsByFloorId(floorId); + if (roomList == null) + { + return; + } for (int i = 0; i < roomList.Count+1; i++) { int xx = 43 + i % 2 * (20 + 487); -- Gitblit v1.8.0