diff options
| author | Luke <luke.pulverenti@gmail.com> | 2014-03-26 14:07:36 -0400 |
|---|---|---|
| committer | Luke <luke.pulverenti@gmail.com> | 2014-03-26 14:07:36 -0400 |
| commit | 4a8fbad50f9b430a79ebcfb9262ad0d51b615b61 (patch) | |
| tree | d094b7513aea598f2133a5b25f6db84753fd30bd | |
| parent | 20d2313fddf8d5bca744ad4154f6c43a29589741 (diff) | |
| parent | 75b5c744871b068041f9f08c2093036cd00c6208 (diff) | |
Merge pull request #755 from 7illusions/master
Identification bugfix
| -rw-r--r-- | MediaBrowser.Dlna/DlnaManager.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Dlna/DlnaManager.cs b/MediaBrowser.Dlna/DlnaManager.cs index 32d6c61ba..cc3ba6d43 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)) |
