diff --git a/MatterControlLib/ControlElements/MHPasswordTextEditWidget.cs b/MatterControlLib/ControlElements/MHPasswordTextEditWidget.cs index 638347c3a..10bd970a1 100644 --- a/MatterControlLib/ControlElements/MHPasswordTextEditWidget.cs +++ b/MatterControlLib/ControlElements/MHPasswordTextEditWidget.cs @@ -50,7 +50,10 @@ namespace MatterHackers.MatterControl get => this.Parent.BackgroundColor; set { - this.Parent.BackgroundColor = value; + if (this.Parent != null) + { + this.Parent.BackgroundColor = value; + } } } }