Server Error in '/he' 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 74:                     var newDate = new Logic.SmartTicketDateNew();
Line 75:                     newDate.availability = true;
Line 76:                     newDate.id = CurrentShow.id;
Line 77:                     newDate.show_date = CurrentShow.start_date != null ? CurrentShow.start_date : CurrentShow.start;
Line 78:                     newDate.show_time = CurrentShow.start_time != null ? CurrentShow.start_time : CurrentShow.start_time;

Source File: c:\hosting\gesher-theatre.co.il\httpdocs\he\000Frames\controls\content\ShowPaymentView.ascx    Line: 76

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.GalleryView.Page_Load(Object sender, EventArgs e) in c:\hosting\gesher-theatre.co.il\httpdocs\he\000Frames\controls\content\ShowPaymentView.ascx:76
   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.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2849


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