Explorar o código

There can be also NULL people?

JPVenson hai 7 meses
pai
achega
b830c42fca
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)
             {
+                people = people.Where(e => e is not null).ToArray();
                 _peopleRepository.UpdatePeople(item.Id, people);
                 await SavePeopleMetadataAsync(people, cancellationToken).ConfigureAwait(false);
             }