fix: add check for missing/empty roomId

This commit is contained in:
Andrew Welker
2022-11-11 16:26:37 -07:00
parent 57eeeec0fb
commit 5e797db096

View File

@@ -418,6 +418,12 @@ namespace PepperDash.Essentials.Core.Bridges
case "vceiscapiadv":
case "vceiscapiadvanced":
{
if (string.IsNullOrEmpty(controlProperties.RoomId))
{
Debug.Console(0, Debug.ErrorLogLevel.Error, "Unable to build VC-4 EISC Client for device {0}. Room ID is missing or empty", dc.Key);
eisc = null;
break;
}
eisc = new VirtualControlEISCClient(controlProperties.IpIdInt, controlProperties.RoomId,
Global.ControlSystem);
break;