diff --git a/MLEM.Ui/Elements/Tooltip.cs b/MLEM.Ui/Elements/Tooltip.cs index bcb55fc..e6e72b0 100644 --- a/MLEM.Ui/Elements/Tooltip.cs +++ b/MLEM.Ui/Elements/Tooltip.cs @@ -123,7 +123,8 @@ namespace MLEM.Ui.Elements { } private void Init(Element elementToHover) { - this.Paragraph.AutoAdjustWidth = true; + if (this.Paragraph != null) + this.Paragraph.AutoAdjustWidth = true; this.SetWidthBasedOnChildren = true; this.SetHeightBasedOnChildren = true;