From 69773db77a131552c7439ee9eeb04eb1514b3f65 Mon Sep 17 00:00:00 2001 From: ta264 Date: Thu, 11 Feb 2021 21:06:42 +0000 Subject: [PATCH] Fixed: Errors converting to book resource --- src/Readarr.Api.V1/Books/BookResource.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Readarr.Api.V1/Books/BookResource.cs b/src/Readarr.Api.V1/Books/BookResource.cs index a07c821dc..6593c2155 100644 --- a/src/Readarr.Api.V1/Books/BookResource.cs +++ b/src/Readarr.Api.V1/Books/BookResource.cs @@ -62,7 +62,7 @@ namespace Readarr.Api.V1.Books PageCount = selectedEdition?.PageCount ?? 0, Genres = model.Genres, Title = selectedEdition?.Title ?? model.Title, - SeriesTitle = model.SeriesLinks?.Value?.Select(x => x.Series.Value.Title + (x.Position.IsNotNullOrWhiteSpace() ? $" #{x.Position}" : string.Empty)).ConcatToString("; "), + SeriesTitle = model.SeriesLinks?.Value?.Select(x => x?.Series?.Value?.Title + (x?.Position.IsNotNullOrWhiteSpace() ?? false ? $" #{x.Position}" : string.Empty)).ConcatToString("; "), Disambiguation = selectedEdition?.Disambiguation, Overview = selectedEdition?.Overview, Images = selectedEdition?.Images ?? new List(),