diff --git a/Shokofin/API/Info/EpisodeInfo.cs b/Shokofin/API/Info/EpisodeInfo.cs index 28fd2d0..8dbab50 100644 --- a/Shokofin/API/Info/EpisodeInfo.cs +++ b/Shokofin/API/Info/EpisodeInfo.cs @@ -383,7 +383,7 @@ public async Task GetImages(CancellationToken cancellationToken) CreatorRoleType.Seiyuu => new PersonInfo { Type = PersonKind.Actor, Name = roles[0].Staff.Name, - Role = roles.Select(role => role.Character!.Name).Order().Join(" / "), + Role = roles.Select(role => role?.Character?.Name ?? string.Empty).Where(role => !string.IsNullOrEmpty(role)).Order().Join(" / "), ImageUrl = GetImagePath(roles[0].Staff.Image), ProviderIds = new() { { roleProvider, roles[0].Staff.Id!.Value.ToString() },