From ccd4d3e26dd53062d00b9187a58caf17d2a3b6ef Mon Sep 17 00:00:00 2001 From: Mbucari Date: Wed, 8 Mar 2023 11:21:47 -0700 Subject: [PATCH] Check for null Plan array --- Source/DtoImporterService/LibraryBookImporter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/DtoImporterService/LibraryBookImporter.cs b/Source/DtoImporterService/LibraryBookImporter.cs index 77ba8aad..72f8dfd6 100644 --- a/Source/DtoImporterService/LibraryBookImporter.cs +++ b/Source/DtoImporterService/LibraryBookImporter.cs @@ -94,6 +94,6 @@ namespace DtoImporterService //confidence that it won't yield many/any false positives. private static bool isPlusTitleUnavailable(ImportItem item) => item.DtoItem.IsAyce is true - && !item.DtoItem.Plans.Any(p => p.PlanName.ContainsInsensitive("Minerva") || p.PlanName.ContainsInsensitive("Free")); + && item.DtoItem.Plans?.Any(p => p.PlanName.ContainsInsensitive("Minerva") || p.PlanName.ContainsInsensitive("Free")) is not true; } }