The Free Software Media System - Server Backend & API
handle missing client type
Luke Pulverenti2c7aaa529360
diff --git a/MediaBrowser.Dlna/PlayTo/PlayToManager.cs b/MediaBrowser.Dlna/PlayTo/PlayToManager.csindex a94a5c30e9..eca3033a81 100644--- a/MediaBrowser.Dlna/PlayTo/PlayToManager.cs+++ b/MediaBrowser.Dlna/PlayTo/PlayToManager.cs@@ -244,8 +244,14 @@ namespace MediaBrowser.Dlna.PlayTovar profile = _dlnaManager.GetProfile(deviceProperties.DisplayName, deviceProperties.ModelName,deviceProperties.ModelNumber);- deviceProperties.DisplayName = profile.Name;- deviceProperties.ClientType = profile.ClientType;+ if (!string.IsNullOrWhiteSpace(profile.Name))+ {+ deviceProperties.DisplayName = profile.Name;+ }+ if (!string.IsNullOrWhiteSpace(profile.ClientType))+ {+ deviceProperties.ClientType = profile.ClientType;+ }}/// <summary>