fixing null reference crash exceptions
This commit is contained in:
parent
83e083fcd6
commit
5836725712
6 changed files with 22 additions and 17 deletions
|
|
@ -108,7 +108,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
|
||||
private void InsetPath()
|
||||
{
|
||||
var path = this.Children.OfType<IPathObject>().FirstOrDefault();
|
||||
var path = this.Children.OfType<IPathObject>()?.FirstOrDefault();
|
||||
if (path == null)
|
||||
{
|
||||
// clear our existing data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue