فهرست منبع

Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser

Luke Pulverenti 11 سال پیش
والد
کامیت
6a5b64bcb4
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  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)
         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 (!string.IsNullOrWhiteSpace(profileInfo.DeviceDescription))
             {
             {
                 if (deviceInfo.DeviceDescription == null || !Regex.IsMatch(deviceInfo.DeviceDescription, profileInfo.DeviceDescription))
                 if (deviceInfo.DeviceDescription == null || !Regex.IsMatch(deviceInfo.DeviceDescription, profileInfo.DeviceDescription))