Skip to content

The Free Software Media System - Server Backend & API

There can be also NULL people?

JPVensonb830c42fca41
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs
index 2d8741fba9..6d33ecee91 100644
--- a/Emby.Server.Implementations/Library/LibraryManager.cs
+++ b/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);
}