Server Error in '/' Application.

Nullable object must have a value.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Nullable object must have a value.

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:


[InvalidOperationException: Nullable object must have a value.]
   System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) +56
   OpenEraRankings.App_Start.DrawData.GetPrizeMoneyFromCategory(String round, Int32 players, CategoryPrizeMoney categ) in C:\Users\Girraphic\source\repos\marrmarv\OpenEraRankings\OpenEraRankings\App_Start\DrawData.cs:2218
   OpenEraRankings.App_Start.DrawData.BuildCommonDraw_MainDraw(Boolean visibleCol, Boolean visibleDraw, Int32 rnd, Int32 trnCols, Boolean isQ, Int32 setsF, Boolean bo5, Tournament trn, List`1 trnMatches, List`1 trnRes, List`1 allPlayers, CategoryPrizeMoney catPrizes, TournamentPrizeMoney trnPrizes, String highlight, SessionUser& su, Int32 mWeek, Int32 wks) in C:\Users\Girraphic\source\repos\marrmarv\OpenEraRankings\OpenEraRankings\App_Start\DrawData.cs:5557
   OpenEraRankings.App_Start.DrawData.BuildCommonDraw(Int32 id, Boolean isQ, Int32 rnd, Int32 grp, SessionUser& su, Boolean& status, Int32& rounds, Int32& roundsQ, Int32& roundsE, Int32& groups, Tournament& trnOut, List`1& trnResOut, List`1& trnMatchOut, List`1& trnTiesOut, List`1& trnPlayers, CategoryPrizeMoney& catPrize, TournamentPrizeMoney& trnPrize, List`1& grpOut, List`1& grpSgl, List`1& grpResOut, List`1& trnPartOut, Boolean visibleCol, Boolean visibleDraw, Int32 controlVar, String highlight, String extraQuery, String extraQueryBase) in C:\Users\Girraphic\source\repos\marrmarv\OpenEraRankings\OpenEraRankings\App_Start\DrawData.cs:3405
   OpenEraRankings.Draws.Page_Load(Object sender, EventArgs e) in C:\Users\Girraphic\source\repos\marrmarv\OpenEraRankings\OpenEraRankings\Draws.aspx.cs:350
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2853


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