System.NullReferenceException: Object reference not set to an instance of an object. at CONNECTS_Portal.repositories.CachedStudyRepository.InitializeStudy(Study study) in C:\_code\CONNECTS\CONNECTS_Portal\src\shared\network-structure\studies\entities\CachedStudyRepository.cs:line 148 at CONNECTS_Portal.repositories.CachedStudyRepository.<>c__DisplayClass2_0.b__0(ICacheEntry entry) in C:\_code\CONNECTS\CONNECTS_Portal\src\shared\network-structure\studies\entities\CachedStudyRepository.cs:line 38 at Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreate[TItem](IMemoryCache cache, Object key, Func`2 factory) at CONNECTS_Portal.repositories.CachedStudyRepository.GetById(Int32 id) at CONNECTS_Portal.src.shared.pages.studies.StudyDetailModel.OnGetAsync(Int32 id) in C:\_code\CONNECTS\CONNECTS_Portal\src\shared\network-structure\studies\components\study-detail\study_detail.cshtml.cs:line 52 at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.GenericTaskHandlerMethod.Convert[T](Object taskAsObject) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.GenericTaskHandlerMethod.Execute(Object receiver, Object[] arguments) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeHandlerMethodAsync() at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeNextPageFilterAsync() at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Rethrow(PageHandlerExecutedContext context) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeInnerFilterAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_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 --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context) HEADERS ======= Accept: */* Host: nhlbi-connects.azurewebsites.net Max-Forwards: 10 User-Agent: claudebot X-FORWARDED-PROTO: https X-FORWARDED-PORT: 443 X-Forwarded-For: 35.175.121.135:53336, 10.197.14.4 X-Original-URL: /studies/anticoagulation X-AppGW-Trace-Id: 099255308330b14ebaadaab5df039b19 X-ORIGINAL-HOST: nhlbi-connects.org X-ARR-LOG-ID: 6f3e3272-7682-4d01-b7f2-e3a76c34deff CLIENT-IP: [fd40:5b5a:20:6292:6d20:4c00:ac5:e04]:39430 DISGUISED-HOST: nhlbi-connects.azurewebsites.net X-SITE-DEPLOYMENT-ID: nhlbi-connects WAS-DEFAULT-HOSTNAME: nhlbi-connects.azurewebsites.net X-AppService-Proto: https X-ARR-SSL: 2048|256|CN=Microsoft Azure RSA TLS Issuing CA 08, O=Microsoft Corporation, C=US|CN=*.azurewebsites.net, O=Microsoft Corporation, L=Redmond, S=WA, C=US X-Forwarded-TlsVersion: 1.2 X-WAWS-Unencoded-URL: /studies/anticoagulation