From 19ff447e51d90575fd9de82a0ba8a3055f1a502a Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Sun, 21 Feb 2021 19:59:15 +0100 Subject: [PATCH] Merge pull request #5275 from BaronGreenback/upnpStartupFix Fixes #5148 (cherry picked from commit 0beda0e32c3e80719700a708b4c9864698cd8f24) Signed-off-by: Joshua M. Boniface --- Emby.Dlna/Main/DlnaEntryPoint.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Emby.Dlna/Main/DlnaEntryPoint.cs b/Emby.Dlna/Main/DlnaEntryPoint.cs index 82490ec310..8f60c3f783 100644 --- a/Emby.Dlna/Main/DlnaEntryPoint.cs +++ b/Emby.Dlna/Main/DlnaEntryPoint.cs @@ -228,7 +228,10 @@ namespace Emby.Dlna.Main { try { - ((DeviceDiscovery)_deviceDiscovery).Start(communicationsServer); + if (communicationsServer != null) + { + ((DeviceDiscovery)_deviceDiscovery).Start(communicationsServer); + } } catch (Exception ex) {