From 6ab0e75bf6f040072e6b36c923b94d8709a68112 Mon Sep 17 00:00:00 2001 From: Hendy Date: Sat, 13 Apr 2019 19:38:16 +0100 Subject: [PATCH] null check fix (in log message) --- src/Our.Umbraco.Look/Services/LookService_Index.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Our.Umbraco.Look/Services/LookService_Index.cs b/src/Our.Umbraco.Look/Services/LookService_Index.cs index d800831..e6ea302 100644 --- a/src/Our.Umbraco.Look/Services/LookService_Index.cs +++ b/src/Our.Umbraco.Look/Services/LookService_Index.cs @@ -77,7 +77,7 @@ internal static void Index(IndexingContext indexingContext, Document document) if (!indexingContext.Cancelled) { - LogHelper.Debug(typeof(LookService), $"Building Lucene Document for Id='{indexingContext.Item.Id}', Key='{indexingContext.Item.GetGuidKey()}', Name='{indexingContext.Item.Name}' in Index '{ indexingContext.IndexerName }' Took { stopwatch.ElapsedMilliseconds }ms"); + LogHelper.Debug(typeof(LookService), $"Building Lucene Document for Id='{indexingContext.Item?.Id}', Key='{indexingContext.Item?.GetGuidKey()}', Name='{indexingContext.Item?.Name}' in Index '{ indexingContext.IndexerName }' Took { stopwatch.ElapsedMilliseconds }ms"); } } }