Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred.

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

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Sitecore.ContentSearch.SitecoreItemCrawler.IsExcludedFromIndex(SitecoreIndexableItem indexable, Boolean checkLocation) +66
   Sitecore.ContentSearch.SitecoreItemCrawler.GetContextIndexRanking(IIndexable indexable) +113
   System.Linq.WhereSelectListIterator`2.MoveNext() +116
   System.Linq.Enumerable.Min(IEnumerable`1 source) +78
   Sitecore.ContentSearch.AbstractSearchIndex.Sitecore.ContentSearch.Pipelines.GetContextIndex.IContextIndexRankable.GetContextIndexRanking(IIndexable indexable) +119
   Sitecore.ContentSearch.Pipelines.GetContextIndex.<>c__DisplayClass6_0.<RankContextIndexes>b__0(ISearchIndex i) +74
   System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +240
   System.Linq.Buffer`1..ctor(IEnumerable`1 source) +283
   System.Linq.<GetEnumerator>d__1.MoveNext() +117
   System.Linq.Buffer`1..ctor(IEnumerable`1 source) +283
   System.Linq.Enumerable.ToArray(IEnumerable`1 source) +89
   Sitecore.ContentSearch.Pipelines.GetContextIndex.FetchIndex.GetContextIndex(IIndexable indexable, GetContextIndexArgs args) +714
   Sitecore.ContentSearch.Pipelines.GetContextIndex.FetchIndex.Process(GetContextIndexArgs args) +48
   (Object , Object ) +13
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +489
   Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists) +235
   Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +21
   Sitecore.Abstractions.CorePipelineWrapper.Run(String pipelineName, PipelineArgs args) +53
   Sitecore.ContentSearch.Pipelines.GetContextIndex.GetContextIndexPipeline.Run(ICorePipeline pipeline, GetContextIndexArgs args) +41
   Sitecore.XA.Foundation.RenderingVariants.Repositories.ListRepository.GetContentSearchQueryItems(Item dataSourceItem, Item queryItem, String query) +147
   Sitecore.XA.Foundation.RenderingVariants.Controllers.Base.PaginableController.OnActionExecuting(ActionExecutingContext filterContext) +756
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +52
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +523


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