1

Closed

MVC Template trunk 1150. Error in root node

description

[NullReferenceException]
 
The error is in row 33. <% Html.RenderZone("Above"); %>
 
Rad 31: <form id="form1" runat="server">
Rad 32: <div>
Rad 33: <% Html.RenderZone("Above"); %>
Rad 34: <table>
Rad 35: <tr>
Closed Apr 9 at 5:09 AM by bherila

comments

cmbijpost wrote Jan 12, 2010 at 11:48 AM

Issue seems to be introduced by the following piece of code

public override string Url
{
get { return "~/RootPage/Index/" + ID; }
}

in RootPage.cs. This Url is supposed to trigger the default route and does, but then the RootPageController is instantiated without CurrentItem. This results in an exception when trying to render the Zones in ~/Views/RootPage/Index.aspx. When this snippet is removed all ends up well when the regular Url kicks in.