diff --git a/Intersect.Client/Interface/Game/DescriptionWindows/Components/ComponentBase.cs b/Intersect.Client/Interface/Game/DescriptionWindows/Components/ComponentBase.cs index 5cf1843b78..10aec3c518 100644 --- a/Intersect.Client/Interface/Game/DescriptionWindows/Components/ComponentBase.cs +++ b/Intersect.Client/Interface/Game/DescriptionWindows/Components/ComponentBase.cs @@ -1,4 +1,4 @@ -using System; +using System; using Intersect.Client.Core; using Intersect.Client.Framework.Gwen.Control; @@ -86,7 +86,15 @@ protected virtual void GenerateComponents() /// /// Dispose of the object. /// - public virtual void Dispose() => mParent.RemoveChild(mContainer, true); + public virtual void Dispose() + { + if(!mParent.Children.Contains(mContainer)) + { + return; + } + + mParent.RemoveChild(mContainer, true); + } /// /// Load the Json layout of the current component.