"NullReferenceException" is thrown in CreateCyclePreventer method

  • When trying to customize Sitecore Launchpad using custom MVC renderings, NullReferenceException can be thrown and the Launchpad page cannot be loaded. The following error appears:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Sitecore.Mvc.Pipelines.Response.RenderPlaceholder.PerformRendering.CreateCyclePreventer(String placeholderName, Rendering rendering) +39
       Sitecore.Mvc.Pipelines.Response.RenderPlaceholder.PerformRendering.Render(String placeholderName, TextWriter writer, RenderPlaceholderArgs args) +154
       (Object , Object[] ) +73
       Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +483
       Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +21
       Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +192
       Sitecore.Mvc.Helpers.SitecoreHelper.Placeholder(String placeholderName) +258
       ASP._sitecore_shell_client_Business_Component_Library_Layouts_Renderings_Containers_ColumnPanels_ColumnPanel_cshtml.Execute() +830
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
       System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +147
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +121
       System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +136
       Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +342

Applies to:

CMS 8.2 Initial Release - 8.2 Update-7

CMS 9.0 Initial Release

January 21, 2020
January 22, 2020

Reference number:

166002