Open TrevorPayne opened 1 year ago
PepperDash.Essentials.DM.DmChassisController.LinkHdmiInputToApi(BasicTriList trilist, uint ioSlot, DmChassisControllerJoinMap joinMap, uint ioSlotJoin)
There should be a null check before this line :
SetHdcpStateAction(PropertiesConfig.InputSlotSupportsHdcp2[ioSlot], hdmiInPortWCec, joinMap.HdcpSupportState.JoinNumber + ioSlotJoin, trilist);
and if it's null, we should set it to a default value.
Default to HDCP2 and the latest hardware releases
Was this bug identified in a specific build version? 1.12.1 - though I imagine it's been here for quite some time.
Describe the bug If the configuration of an DM-MDXXX Switcher does not contain the
inputSlotSupportsHdcp2
object, Linking to the API will fail.Stacktrace
Include a stack trace of the exception if possible.
To Reproduce Steps to reproduce the behavior:
inputSlotSupportsHdcp2
object.Expected behavior This should at the bare minimum fail gracefully to a default state and note the lack of this config rather than simply fail with a difficult to parse stack trace.
Additional context This was discovered while upgrading an essentials installation from 1.14.21 - which means this is a breaking change within a major version and should probably be fixed.