From 8044ccbf27987b47002f2b766ba5eef4b700a0e7 Mon Sep 17 00:00:00 2001 From: Claus Date: Wed, 16 May 2018 10:17:38 +0200 Subject: [PATCH] adding missing null check after navigating to parent. --- src/Umbraco.Web/PublishedCache/NuCache/ContentCache.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web/PublishedCache/NuCache/ContentCache.cs b/src/Umbraco.Web/PublishedCache/NuCache/ContentCache.cs index 98701ebf67..edef545d2a 100644 --- a/src/Umbraco.Web/PublishedCache/NuCache/ContentCache.cs +++ b/src/Umbraco.Web/PublishedCache/NuCache/ContentCache.cs @@ -155,7 +155,9 @@ namespace Umbraco.Web.PublishedCache.NuCache // move to parent node n = n.Parent; - urlSegment = n.GetUrlSegment(culture); + if (n != null) + urlSegment = n.GetUrlSegment(culture); + hasDomains = n != null && _domainHelper.NodeHasDomains(n.Id); }