mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 03:57:27 +00:00
fix(essentials): Add a condition to check for an empty configuration.presentation object response and return to avoid null ref ex
This commit is contained in:
parent
90023621dc
commit
89a7f2aa80
1 changed files with 6 additions and 0 deletions
|
|
@ -856,6 +856,12 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||
// Check to see if the message contains /Status/Conference/Presentation/LocalInstance and extract source value
|
||||
var conference = tempCodecStatus.Status.Conference;
|
||||
|
||||
if (conference.Presentation != null && conference.Presentation.LocalInstance == null)
|
||||
{
|
||||
// Handles an empty presentation object response
|
||||
return;
|
||||
}
|
||||
|
||||
if (conference.Presentation.LocalInstance.Count > 0)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(conference.Presentation.LocalInstance[0].ghost))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue