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.]
   Web.Controllers.ProductSearchController.GetVersionedProducts(Item categoryOrRange, List`1 filterIds, List`1 rangeIds, List`1 productTypeIds) +555
   Web.Controllers.ProductSearchController.MakeProductSearchResulsModel(ProductSearchData searchData) +582
   Web.Controllers.ProductSearchController.ProductCategoryCatalogueAjax(String contextId, String categoryOrRangeId, String filterId, String rangeId, String productTypeId, Boolean onlyNew, Boolean onlyBestseller, Boolean showFilter, Int32 sortOrder, Int32 pageSize, Int32 pageNumber, Boolean isBvEnabled, Boolean isCustomReviewsEnabled) +4618
   lambda_method(Closure , ControllerBase , Object[] ) +975
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +228
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +34
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +79
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +454
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +454
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +524


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