handle bad profile value

This commit is contained in:
Luke Pulverenti 2016-11-20 14:40:35 -05:00
parent 184f3bc50a
commit 039487740b

View File

@ -238,6 +238,12 @@ namespace Emby.Dlna
private bool IsMatch(IDictionary<string, string> headers, HttpHeaderInfo header)
{
// Handle invalid user setup
if (string.IsNullOrWhiteSpace(header.Name))
{
return false;
}
string value;
if (headers.TryGetValue(header.Name, out value))