Project

General

Profile

Actions

Bug #1142

closed

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

Added by Axel "Elanis" Soupé over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
-
Start date:
05/12/2021
Due date:
% Done:

100%

Estimated time:
Spent time:

Description

fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1]
An unhandled exception has occurred while executing the request.
System.NullReferenceException: Object reference not set to an instance of an object.
at Dysnomia.AchieveGames.Common.ShuffleHelper.Shuffle[T](IList1 list) in /app/Dysnomia.AchieveGames.Common/ShuffleHelper.cs:line 9 at Dysnomia.AchieveGames.Business.Implementations.SteamApplications.GetRandomAchievementForCurrentUser(String steamid) in /app/Dysnomia.AchieveGames.Business/Implementations/SteamApplications.cs:line 106 at Dysnomia.AchieveGames.WebApp.Controllers.HomeController.GetRandomAchievement(List1 games) in /app/Dysnomia.AchieveGames.WebApp/Controllers/HomeController.cs:line 54
at Dysnomia.AchieveGames.WebApp.Controllers.HomeController.RandomAchievement() in /app/Dysnomia.AchieveGames.WebApp/Controllers/HomeController.cs:line 60
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.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.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.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.g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
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 Dysnomia.AchieveGames.WebApp.Startup.<>c.<b__5_1>d.MoveNext() in /app/Dysnomia.AchieveGames.WebApp/Startup.cs:line 117
--- End of stack trace from previous location ---
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 Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)

Actions

Also available in: Atom PDF