Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 26:         private string breadLink(Sitecore.Data.Items.Item itm)
Line 27:         {
Line 28:             return "<a class=\"BREADCRUMBS_object\" href=\"" + itm.Paths.GetFriendlyUrl() +
Line 29:                 "\">" + itm.Fields["Page_title"].Value + "</a>";
Line 30:         }

Source File: c:\Inetpub\wwwroot\SitecoreWebsite2\WebSite\layouts\woman1.aspx.cs    Line: 28

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   SLG_Sitecore.layouts.woman1.breadLink(Item itm) in c:\Inetpub\wwwroot\SitecoreWebsite2\WebSite\layouts\woman1.aspx.cs:28
   SLG_Sitecore.layouts.woman1.bakeBread() in c:\Inetpub\wwwroot\SitecoreWebsite2\WebSite\layouts\woman1.aspx.cs:39
   SLG_Sitecore.layouts.woman1.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\SitecoreWebsite2\WebSite\layouts\woman1.aspx.cs:72
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433