aboutsummaryrefslogtreecommitdiff
path: root/Emby.Dlna/Server/DescriptionXmlBuilder.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Dlna/Server/DescriptionXmlBuilder.cs')
-rw-r--r--Emby.Dlna/Server/DescriptionXmlBuilder.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Dlna/Server/DescriptionXmlBuilder.cs b/Emby.Dlna/Server/DescriptionXmlBuilder.cs
index 09525aae4..3f3dfccd3 100644
--- a/Emby.Dlna/Server/DescriptionXmlBuilder.cs
+++ b/Emby.Dlna/Server/DescriptionXmlBuilder.cs
@@ -250,7 +250,8 @@ namespace Emby.Dlna.Server
url = _serverAddress.TrimEnd('/') + "/dlna/" + _serverUdn + "/" + url.TrimStart('/');
- return SecurityElement.Escape(url);
+ // TODO: @bond remove null-coalescing operator when https://github.com/dotnet/runtime/pull/52442 is merged/released
+ return SecurityElement.Escape(url) ?? string.Empty;
}
private IEnumerable<DeviceIcon> GetIcons()