mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
Change Guid.Parse to Guid.TryParse
This commit is contained in:
parent
18cd634ec8
commit
4cc3b938fa
@ -348,11 +348,13 @@ namespace Emby.Server.Implementations.Collections
|
||||
foreach (var child in item.GetMediaSources(true))
|
||||
{
|
||||
|
||||
if (results.ContainsKey(Guid.Parse(child.Id)))
|
||||
if (Guid.TryParse(child.Id, out var id) && results.ContainsKey(id))
|
||||
{
|
||||
alreadyInResults = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!alreadyInResults)
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user