Merge pull request #409 from Bond-009/fix254

[Fix #254] Fix nullrefexception in SubtitleEncoder
This commit is contained in:
Vasily
2019-01-06 03:09:12 +03:00
committed by GitHub
2 changed files with 14 additions and 3 deletions

View File

@@ -160,9 +160,9 @@ namespace Emby.Server.Implementations.Library
list.Add(source);
}
foreach (var source in list)
if (user != null)
{
if (user != null)
foreach (var source in list)
{
if (string.Equals(item.MediaType, MediaType.Audio, StringComparison.OrdinalIgnoreCase))
{