Filter out null properties

This commit is contained in:
John Lewin 2018-03-27 12:25:16 -07:00
parent 03b9d21594
commit 96574587c0

View file

@ -311,7 +311,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
};
// Shown known editors for any matching properties
foreach (var member in members)
foreach (var member in members.Where(m => m.Value != null))
{
if (ApplicationController.Instance.GetEditorsForType(member.Type)?.FirstOrDefault() is IObject3DEditor editor)
{