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 96: 
Line 97:     Public Function VideoLink(ByVal link As String) As Boolean
Line 98:         If link.Contains("youtu") Then
Line 99:             Return True
Line 100:        Else

Source File: D:\Sites\vhosts\tjuchem.net\httpdocs\Controls\functions\SlidingHeader.ascx.vb    Line: 98

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Controls_functions_SlidingHeader.VideoLink(String link) in D:\Sites\vhosts\tjuchem.net\httpdocs\Controls\functions\SlidingHeader.ascx.vb:98
   ASP.controls_functions_slidingheader_ascx.__DataBinding__control5(Object sender, EventArgs e) in D:\Sites\vhosts\tjuchem.net\httpdocs\Controls\functions\SlidingHeader.ascx:17
   System.Web.UI.Control.OnDataBinding(EventArgs e) +97
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +173
   System.Web.UI.Control.DataBindChildren() +246
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +191
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +172
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +279
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +104
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +80
   Controls_functions_SlidingHeader.Page_Load(Object sender, EventArgs e) in D:\Sites\vhosts\tjuchem.net\httpdocs\Controls\functions\SlidingHeader.ascx.vb:39
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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