Guard for null

This commit is contained in:
John Lewin 2018-10-22 16:10:01 -07:00
parent 1b239f2319
commit 897e263f73

View file

@ -50,7 +50,10 @@ namespace MatterHackers.MatterControl
get => this.Parent.BackgroundColor;
set
{
this.Parent.BackgroundColor = value;
if (this.Parent != null)
{
this.Parent.BackgroundColor = value;
}
}
}
}