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 115:				foreach (string rp in Node.relatedProducts.Split(','))
Line 116:				{
Line 117:					var prod = Umbraco.TypedContent(rp);
Line 118:					<div><a href="@prod.Url"><img src="@Umbraco.TypedMedia(prod.GetPropertyValue("bucketImage")).Url" width="135"><p>@prod.Name</p></a></div>
Line 119:				}

Source File: d:\inetpub\wwwroot\PettitPaint\Views\MacroPartials\Product.cshtml    Line: 117

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP._Page_Views_MacroPartials_Product_cshtml.Execute() in d:\inetpub\wwwroot\PettitPaint\Views\MacroPartials\Product.cshtml:117
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +251
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +146
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +121
   Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +199
   Umbraco.Web.Mvc.ControllerExtensions.RenderViewResultAsString(ControllerBase controller, ViewResultBase viewResult) +268
   Umbraco.Web.Macros.PartialViewMacroEngine.Execute(MacroModel macro, IPublishedContent content) +964
   umbraco.macro.LoadPartialViewMacro(MacroModel macro) +80
   umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId) +2797
   umbraco.presentation.templateControls.Macro.CreateChildControls() +2366
   System.Web.UI.Control.EnsureChildControls() +107
   umbraco.presentation.templateControls.Macro.OnInit(EventArgs e) +44
   System.Web.UI.Control.InitRecursive(Control namingContainer) +173
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +491


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0