From aa3c44f5685289717498450e5ce9685691633a84 Mon Sep 17 00:00:00 2001 From: Martin Ingvar Kofoed Jensen Date: Mon, 20 Sep 2010 09:42:43 +0200 Subject: [PATCH] Bugfix: 3096 - Exception thown when calling sitemapNavigator.CurrentHomePageNode.GetPageIds(SitemapScope.DescendantsAndCurrent). --- Composite/Core/Implementation/SitemapNavigatorImplementation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Composite/Core/Implementation/SitemapNavigatorImplementation.cs b/Composite/Core/Implementation/SitemapNavigatorImplementation.cs index 38df9e72ab..c3f2bded55 100644 --- a/Composite/Core/Implementation/SitemapNavigatorImplementation.cs +++ b/Composite/Core/Implementation/SitemapNavigatorImplementation.cs @@ -152,7 +152,7 @@ public virtual PageNode CurrentHomePageNode XElement pageXElement = GetElementByPageId(PageRenderer.CurrentPageId); - while (pageXElement.Parent != null) + while ((pageXElement.Parent != null) && (pageXElement.Parent.Name.LocalName == "Page")) { pageXElement = pageXElement.Parent; }