Browse Source

There can be also NULL people?

JPVenson 6 months ago
parent
commit
b830c42fca
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Emby.Server.Implementations/Library/LibraryManager.cs

+ 1 - 0
Emby.Server.Implementations/Library/LibraryManager.cs

@@ -2802,6 +2802,7 @@ namespace Emby.Server.Implementations.Library
 
 
             if (people is not null)
             if (people is not null)
             {
             {
+                people = people.Where(e => e is not null).ToArray();
                 _peopleRepository.UpdatePeople(item.Id, people);
                 _peopleRepository.UpdatePeople(item.Id, people);
                 await SavePeopleMetadataAsync(people, cancellationToken).ConfigureAwait(false);
                 await SavePeopleMetadataAsync(people, cancellationToken).ConfigureAwait(false);
             }
             }