Guard for null
This commit is contained in:
parent
1a3f48112c
commit
052e3c1fb1
1 changed files with 6 additions and 1 deletions
|
|
@ -234,7 +234,12 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
}
|
||||
|
||||
_selectedNode = value;
|
||||
_selectedNode.HighlightRegion.BackgroundColor = theme.AccentMimimalOverlay;
|
||||
|
||||
if (_selectedNode != null)
|
||||
{
|
||||
_selectedNode.HighlightRegion.BackgroundColor = theme.AccentMimimalOverlay;
|
||||
}
|
||||
|
||||
OnAfterSelect(null);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue