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 81:     Public Shared Function GetArticleTypeString(ByVal node As IPublishedContent) As String
Line 82: 
Line 83:         If node.DocumentTypeAlias = "MagazineArticle" Then
Line 84:             Return "<a href='" & node.Parent.Parent.Url & "'>Hydrocarbon Processing / " & node.Parent.Parent.Name & "</a>"
Line 85:         End If

Source File: D:\websites\HP Live\App_Code\Content\Articles.vb    Line: 83

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   Articles.GetArticleTypeString(IPublishedContent node) in D:\websites\HP Live\App_Code\Content\Articles.vb:83
   ASP.masterpages_author_master.__DataBind__control5(Object sender, EventArgs e) in D:\websites\HP Live\masterpages\Author.master:56
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +303
   System.Web.UI.Control.DataBindChildren() +12451883
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +321
   System.Web.UI.WebControls.ListView.CreateItemsWithoutGroups(ListViewPagedDataSource dataSource, Boolean dataBinding, InsertItemPosition insertPosition, ArrayList keyArray) +1189
   System.Web.UI.WebControls.ListView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +1131
   System.Web.UI.WebControls.ListView.PerformDataBinding(IEnumerable data) +54
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +222
   System.Web.UI.WebControls.ListView.PerformSelect() +355
   ASP.masterpages_author_master.Page_Load(Object sender, EventArgs e) in D:\websites\HP Live\masterpages\Author.master:15
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178


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