浏览代码

There can be also NULL people?

JPVenson 7 月之前
父节点
当前提交
b830c42fca
共有 1 个文件被更改,包括 1 次插入0 次删除
  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);
             }