Tag.GetDescendants error in web admin tool

Hello all,

I'm having a difficult time nailing down how to solve a certain exception I'm getting regarding a piece of content created by a user.

The content itself has many web parts on it, the main one being a tagged list.

When trying to access the page through the site, we get our error page.

When trying to edit the page in the web admin tool, we also get an error message, and it appears to have something to do with tags and missing relationships in the database (I believe a user accidentally deleted some tags and then recreated them).

Error screenshot is attached. Stack trace:

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:

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:

[NullReferenceException: Object reference not set to an instance of an object.]
   Asi.Business.ContentManagement.Tag.GetDescendants(Tag tag) +37
   Asi.Business.ContentManagement.ContentTaggedList.GetResults(Int32 pageSize, Int32 pageIndex, Boolean ignoreMaxNumResults, Int32& totalRowCount) +1595
   Asi.Business.ContentManagement.ContentTaggedList.GetResults(Int32& totalRowCount) +49
   AsiCommon_Controls_ContentManagement_DisplayTaggedList.DataBind() +172
   AsiCommon_Controls_ContentManagement_DisplayTaggedList.Page_PreRender(Object sender, EventArgs e) +19
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +8679510
   Asi.Web.UI.UserControlBase.OnPreRender(EventArgs e) +64
   Asi.Web.UI.ContentItemDisplayBase.OnPreRender(EventArgs e) +111
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +42
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

Any insight into how to resolve this error (or even where tag relationships exist in the database) would be GREATLY appreciated.

Thanks!
Colin McGuire

AttachmentSize
Tags error.jpg220.47 KB