Ver Fonte

Merge pull request #755 from 7illusions/master

Identification bugfix
Luke há 11 anos atrás
pai
commit
4a8fbad50f
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      MediaBrowser.Dlna/DlnaManager.cs

+ 6 - 0
MediaBrowser.Dlna/DlnaManager.cs

@@ -127,6 +127,12 @@ namespace MediaBrowser.Dlna
 
         private bool IsMatch(DeviceIdentification deviceInfo, DeviceIdentification profileInfo)
         {
+            if (profileInfo == null)
+            {
+                //There are profiles without identification, ignore thoose
+                return false;
+            }
+
             if (!string.IsNullOrWhiteSpace(profileInfo.DeviceDescription))
             {
                 if (deviceInfo.DeviceDescription == null || !Regex.IsMatch(deviceInfo.DeviceDescription, profileInfo.DeviceDescription))