Skip to content

Commit

Permalink
Bugfix: 3096 - Exception thown when calling sitemapNavigator.CurrentH…
Browse files Browse the repository at this point in the history
…omePageNode.GetPageIds(SitemapScope.DescendantsAndCurrent).
  • Loading branch information
IngvarKofoed committed Sep 20, 2010
1 parent 227cac9 commit aa3c44f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit aa3c44f

Please sign in to comment.