Null Pointer fix

pull/5475/head
BaronGreenback 4 years ago
parent 5592967497
commit eafb8cf652

@ -27,13 +27,13 @@ namespace Rssdp.Infrastructure
/// </summary>
public SsdpDeviceLocator(ISsdpCommunicationsServer communicationsServer)
{
if (communicationsServer == null)
{
throw new ArgumentNullException(nameof(communicationsServer));
}
_CommunicationsServer = communicationsServer;
if (communicationsServer != null)
{
// This can occur is dlna is enabled, but defined to run over https.
_CommunicationsServer.ResponseReceived += CommsServer_ResponseReceived;
}
_Devices = new List<DiscoveredSsdpDevice>();
}

Loading…
Cancel
Save