diff --git a/src/UserInterface/CiscoCodecUserInterface/MobileControl/McVideoCodecTouchpanelController.cs b/src/UserInterface/CiscoCodecUserInterface/MobileControl/McVideoCodecTouchpanelController.cs index f0562a7..bcd66a9 100644 --- a/src/UserInterface/CiscoCodecUserInterface/MobileControl/McVideoCodecTouchpanelController.cs +++ b/src/UserInterface/CiscoCodecUserInterface/MobileControl/McVideoCodecTouchpanelController.cs @@ -91,14 +91,14 @@ private void PostActivateSubscribeForMobileControlUpdates() return; } var bridge = Mc.GetRoomMessenger(_props.DefaultRoomKey); - Debug.LogMessage(LogEventLevel.Debug, $"[McTouchpanelController] Got Bridge: {bridge.RoomName}", this); if (bridge == null) { Debug.LogMessage(LogEventLevel.Debug, $"[McTouchpanelController] No Mobile Control bridge for {_props.DefaultRoomKey} found ", this); return; } + Debug.LogMessage(LogEventLevel.Debug, $"[McTouchpanelController] Got Bridge: {bridge.RoomName}", this); - _bridge = bridge; + _bridge = bridge; Debug.LogMessage(LogEventLevel.Debug, $"[McTouchpanelController] Setting AppUrl", this); Debug.LogMessage(LogEventLevel.Debug, $"[McTouchpanelController] Mobile Control Room Bridge Found {_bridge.Key}", this); diff --git a/src/UserInterface/CiscoCodecUserInterface/MobileControl/McVideoCodecUserInterfaceRouter.cs b/src/UserInterface/CiscoCodecUserInterface/MobileControl/McVideoCodecUserInterfaceRouter.cs index 4c07496..b989ac5 100644 --- a/src/UserInterface/CiscoCodecUserInterface/MobileControl/McVideoCodecUserInterfaceRouter.cs +++ b/src/UserInterface/CiscoCodecUserInterface/MobileControl/McVideoCodecUserInterfaceRouter.cs @@ -114,9 +114,12 @@ internal void Activate(McVideoCodecTouchpanelController ui) HandleRoomCombineScenarioChanged(); }; - //subscribe to events for routing buttons from codec ui to mobile control - _combinerHandler.EssentialsRoomCombiner.RoomCombinationScenarioChanged += - Combiner_RoomCombinationScenarioChanged_Lockout_EventHandler; + if (_combinerHandler.EssentialsRoomCombiner != null) + { + //subscribe to events for routing buttons from codec ui to mobile control + _combinerHandler.EssentialsRoomCombiner.RoomCombinationScenarioChanged += + Combiner_RoomCombinationScenarioChanged_Lockout_EventHandler; + } _extensionsHandler.UiExtensionsClickedEvent += VideoCodecUiExtensionsClickedMcEventHandler;