From f02da1fdd2a0111dc8fa51a3a53e262b2a98fbe0 Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 30 Jan 2019 17:36:33 +1100 Subject: [PATCH] nucache bug fix --- src/Umbraco.Web/PublishedCache/NuCache/ContentNode.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/PublishedCache/NuCache/ContentNode.cs b/src/Umbraco.Web/PublishedCache/NuCache/ContentNode.cs index 5bab8aa265..db7aa0d5d1 100644 --- a/src/Umbraco.Web/PublishedCache/NuCache/ContentNode.cs +++ b/src/Umbraco.Web/PublishedCache/NuCache/ContentNode.cs @@ -100,8 +100,8 @@ namespace Umbraco.Web.PublishedCache.NuCache var originPublished = origin.PublishedContent; - DraftContent = new PublishedContent(this, originDraft, umbracoContextAccessor); - PublishedContent = new PublishedContent(this, originPublished, umbracoContextAccessor); + DraftContent = originDraft == null ? null : new PublishedContent(this, originDraft, umbracoContextAccessor); + PublishedContent = originPublished == null ? null : new PublishedContent(this, originPublished, umbracoContextAccessor); DraftModel = DraftContent?.CreateModel(); PublishedModel = PublishedContent?.CreateModel();