2026-04-29 10:22:17.5515 ERROR Something went wrong: System.NullReferenceException: Object reference not set to an instance of an object.
   at COPOSWeb.Repository.Service.WorkPlanAllocationService.WorkPlanAllocationService._GetWorkPlanManagementViewModel(ProductionPlan productionPlan, List`1 workPlanAllocations, List`1 workPlanAllocationAmounts, List`1 workPlanSubmissions, List`1 agencies, User user, Boolean isReadonly) in C:\Users\c-jacosmit\source\repos\COPOS2\COPOSWeb\Repository\Service\WorkPlanAllocationService\WorkPlanAllocationService.cs:line 246
   at COPOSWeb.Repository.Service.WorkPlanAllocationService.WorkPlanAllocationService.GetWorkPlanAllocationManagementViewModel(Int32 reportId, Guid userLoginGuid) in C:\Users\c-jacosmit\source\repos\COPOS2\COPOSWeb\Repository\Service\WorkPlanAllocationService\WorkPlanAllocationService.cs:line 137
   at COPOSWeb.Controllers.WorkPlanAllocationController.GetWorkPlanAllocationManagementViewModel(Int32 reportId, Guid userLoginGuid) in C:\Users\c-jacosmit\source\repos\COPOS2\COPOSWeb\Controllers\WorkPlanAllocationController.cs:line 28
   at lambda_method6622(Closure, Object, Object[])
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   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 ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>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.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
