mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
refactor: add error handling for cases where type isn't found
This commit is contained in:
parent
1b9f16ea74
commit
9b2611be02
2 changed files with 13 additions and 1 deletions
|
|
@ -29,7 +29,14 @@ namespace PepperDash.Essentials.Core.UI
|
|||
/// <param name="id">IP-ID to use for touch panel</param>
|
||||
protected TouchpanelBase(string key, string name, BasicTriListWithSmartObject panel, CrestronTouchpanelPropertiesConfig config)
|
||||
:base(key, name)
|
||||
{
|
||||
{
|
||||
|
||||
if (Panel == null)
|
||||
{
|
||||
Debug.Console(0, this, "Panel is not valid. Touchpanel class WILL NOT work correctly");
|
||||
return;
|
||||
}
|
||||
|
||||
Panel = panel;
|
||||
|
||||
Panel.SigChange += Panel_SigChange;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue