Error

Status Code: 500

Message: Object reference not set to an instance of an object.

Stack: at CvVillas.Www.Controllers.VillaSearchController.Index(Int32[] where) in C:\agent\cv\_work\1\s\src\CvVillas.Www\Controllers\VillaSearchController.cs:line 50 at lambda_method(Closure , Object , Object[] ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at CvVillas.Core.Client.Middleware.AgentInitialsMiddleware.Invoke(HttpContext httpContext, ISessionAccessor sessionAccessor) in C:\agent\cv\_work\1\s\src\CvVillas.Core.Client\Middleware\AgentInitialsMiddleware.cs:line 36 at CvVillas.Core.Client.Middleware.SessionRowUpdateMiddleware.Invoke(HttpContext httpContext, ILogger`1 logger, UserManager`1 userManager, MarketingRadarApiClient marketingRadarApiClient, SessionTrackService sessionTrackService, IOptions`1 options) in C:\agent\cv\_work\1\s\src\CvVillas.Core.Client\Middleware\SessionRowUpdateMiddleware.cs:line 57 at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Zolv.WTP.Client.ContentBlocks.ContentBlockManagerMiddleware.Invoke(HttpContext httpContext, ContentBlockManager contentBlockManagerManager) at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context) at Zolv.WTP.Client.CmsPage.CmsPageMiddleware.Invoke(HttpContext httpContext, ICmsPageResolver cmsPageResolver, ICommandContextScopeFactory commandContextScopeFactory) at Zolv.WTP.Client.BrandIdentifier.BrandResolverMiddleware.Invoke(HttpContext httpContext, IBrandResolver brandResolver) at Zolv.WTP.Client.CommandContext.CommandContextMiddleware.Invoke(HttpContext httpContext, ICommandContextScopeFactory commandContextScopeFactory, IChannelResolver channelResolver, Func`1 pbDataContextFactory) at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.Invoke(HttpContext context) at Zolv.WTP.Core.WebUtil.ResponseCompression.ResponseCompressionQualityMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware.Invoke(HttpContext httpContext) at CvVillas.Core.Client.Middleware.UserVaryMiddleware.Invoke(HttpContext httpContext) in C:\agent\cv\_work\1\s\src\CvVillas.Core.Client\Middleware\UserVaryMiddleware.cs:line 30 at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)