Guard for null
This commit is contained in:
parent
1b239f2319
commit
897e263f73
1 changed files with 4 additions and 1 deletions
|
|
@ -50,7 +50,10 @@ namespace MatterHackers.MatterControl
|
|||
get => this.Parent.BackgroundColor;
|
||||
set
|
||||
{
|
||||
this.Parent.BackgroundColor = value;
|
||||
if (this.Parent != null)
|
||||
{
|
||||
this.Parent.BackgroundColor = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue