From 75b5c744871b068041f9f08c2093036cd00c6208 Mon Sep 17 00:00:00 2001 From: 7illusions Date: Wed, 26 Mar 2014 19:03:34 +0100 Subject: [PATCH] Identification bugfix --- MediaBrowser.Dlna/DlnaManager.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MediaBrowser.Dlna/DlnaManager.cs b/MediaBrowser.Dlna/DlnaManager.cs index 32d6c61baf..cc3ba6d432 100644 --- a/MediaBrowser.Dlna/DlnaManager.cs +++ b/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))