Browse Source

Merge pull request #755 from 7illusions/master

Identification bugfix
Luke 11 năm trước cách đây
mục cha
commit
4a8fbad50f
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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))