数组越界修改
This commit is contained in:
parent
4f4caf1986
commit
34f683fbca
|
@ -28,6 +28,7 @@ public class DeviceManager : MonoSingleton<DeviceManager>
|
||||||
{
|
{
|
||||||
data = data.Replace("send2room", "");
|
data = data.Replace("send2room", "");
|
||||||
string[] info = data.Split(',');
|
string[] info = data.Split(',');
|
||||||
|
if (info.Length < 2) return;
|
||||||
EquipmentCommon equipmentCommon = devices.Find(x => x.deviceID == info[1]);
|
EquipmentCommon equipmentCommon = devices.Find(x => x.deviceID == info[1]);
|
||||||
if (equipmentCommon)
|
if (equipmentCommon)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue