mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-18 14:15:08 +00:00
Added try/catch to VideoCodecUiDriver constructor. Seems to resolve errant NullRef
This commit is contained in:
@@ -97,6 +97,8 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||||||
/// <param name="codec"></param>
|
/// <param name="codec"></param>
|
||||||
public EssentialsVideoCodecUiDriver(BasicTriListWithSmartObject triList, IAVDriver parent, VideoCodecBase codec)
|
public EssentialsVideoCodecUiDriver(BasicTriListWithSmartObject triList, IAVDriver parent, VideoCodecBase codec)
|
||||||
: base(triList)
|
: base(triList)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
if (codec == null)
|
if (codec == null)
|
||||||
throw new ArgumentNullException("Codec cannot be null");
|
throw new ArgumentNullException("Codec cannot be null");
|
||||||
@@ -187,6 +189,11 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||||||
|
|
||||||
TriList.SetSigFalseAction(UIBoolJoin.CallStopSharingPress, Codec.StopSharing);
|
TriList.SetSigFalseAction(UIBoolJoin.CallStopSharingPress, Codec.StopSharing);
|
||||||
}
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.Console(1, "Exception in VideoCodecUiDriver Constructor: {0}", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Updates the current shared source label on the call list when the source changes
|
/// Updates the current shared source label on the call list when the source changes
|
||||||
@@ -272,7 +279,7 @@ namespace PepperDash.Essentials.UIDrivers.VC
|
|||||||
ShowKeypad();
|
ShowKeypad();
|
||||||
DialStringBuilder.Remove(0, DialStringBuilder.Length);
|
DialStringBuilder.Remove(0, DialStringBuilder.Length);
|
||||||
DialStringFeedback.FireUpdate();
|
DialStringFeedback.FireUpdate();
|
||||||
Parent.ShowNotificationRibbon("Disonnected", 2000);
|
Parent.ShowNotificationRibbon("Disconnected", 2000);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case eCodecCallStatus.Disconnecting:
|
case eCodecCallStatus.Disconnecting:
|
||||||
|
|||||||
Reference in New Issue
Block a user