Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 135:            GBCompetition.Setup.Publish.VenueData venue = GolfBox.T2.Business.Logic.Competition.Setup.Publish.VenueLogic.Load(competitionId);
Line 136:
Line 137:            List<GBCompetition.Setup.Round.RoundData> roundsByClass = GolfBox.T2.Business.Logic.Competition.Setup.Round.RoundLogic.Lists.ByClass(classId);
Line 138:            List<GBCompetition.Setup.Round.RoundData> roundsByIdAndNumber = new List<GBCompetition.Setup.Round.RoundData>();
Line 139:            GBCompetition.Setup.Round.RoundData currentRound = null;

Source File: d:\webs\GolfBox.T2.Prod\Slideshow\App_Code\Handlers\SlideShowHandler.cs    Line: 137

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   GolfBox.T2.Business.Logic.Competition.Setup.Round.RoundLogic.GenerateRoundName(List`1 rounds, CompetitionData compData, ContextHelper ctxHelper) in C:\GolfBox\Workspace\Build\GolfBox.T2.Business\Logic\Competition\Setup\Round\RoundLogic.cs:663
   GolfBox.T2.Business.Logic.Competition.Setup.Round.RoundLogic.FillRound(List`1 rounds, Boolean generateRoundName, Boolean loadAll, ContextHelper ctxHelper) in C:\GolfBox\Workspace\Build\GolfBox.T2.Business\Logic\Competition\Setup\Round\RoundLogic.cs:413
   GolfBox.T2.Business.Logic.Competition.Setup.Round.Lists.ByClass(Int32 classRID) in C:\GolfBox\Workspace\Build\GolfBox.T2.Business\Logic\Competition\Setup\Round\RoundLogic.cs:1265
   Handlers.SlideShowHandler.GetLeaderboard(Int32 competitionId, Int32 classId, List`1 courseStartIds, Nullable`1 roundID, Boolean isLeaderboardLarge, Boolean reverse) in d:\webs\GolfBox.T2.Prod\Slideshow\App_Code\Handlers\SlideShowHandler.cs:137
   Default.Page_Load(Object sender, EventArgs e) in d:\webs\GolfBox.T2.Prod\Slideshow\Default.aspx.cs:43
   System.Web.UI.Control.OnLoad(EventArgs e) +107
   System.Web.UI.Control.LoadRecursive() +89
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1532


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