From 8ea6e2b855378bfeb1ba35b0fe379f5280a9b100 Mon Sep 17 00:00:00 2001 From: Shannon Date: Mon, 18 Feb 2019 19:07:51 +1100 Subject: [PATCH] If a content item has no template (i.e. route hijack), it will fail to render --- src/Umbraco.Web/Routing/PublishedRouter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Routing/PublishedRouter.cs b/src/Umbraco.Web/Routing/PublishedRouter.cs index 0ce6a9b768..6908b2b333 100644 --- a/src/Umbraco.Web/Routing/PublishedRouter.cs +++ b/src/Umbraco.Web/Routing/PublishedRouter.cs @@ -728,7 +728,7 @@ namespace Umbraco.Web.Routing private ITemplate GetTemplateModel(int? templateId) { - if (templateId.HasValue == false) + if (templateId.HasValue == false || templateId.Value == default) { _logger.Debug("GetTemplateModel: No template."); return null;