mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-04 09:16:17 +00:00
Null Pointer fix
This commit is contained in:
@@ -27,13 +27,13 @@ namespace Rssdp.Infrastructure
|
||||
/// </summary>
|
||||
public SsdpDeviceLocator(ISsdpCommunicationsServer communicationsServer)
|
||||
{
|
||||
if (communicationsServer == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(communicationsServer));
|
||||
}
|
||||
|
||||
_CommunicationsServer = communicationsServer;
|
||||
_CommunicationsServer.ResponseReceived += CommsServer_ResponseReceived;
|
||||
|
||||
if (communicationsServer != null)
|
||||
{
|
||||
// This can occur is dlna is enabled, but defined to run over https.
|
||||
_CommunicationsServer.ResponseReceived += CommsServer_ResponseReceived;
|
||||
}
|
||||
|
||||
_Devices = new List<DiscoveredSsdpDevice>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user