Fix null reference in Visject CM if there are no elements associated with a node.

This commit is contained in:
Chandler Cox
2024-08-26 21:03:04 -05:00
parent e5f0e05d43
commit 9ebf98ce77

View File

@@ -875,7 +875,7 @@ namespace FlaxEditor.Surface.ContextMenu
AddInputOutputElement(archetype, output.Type, true, $"{output.Name} ({output.Type.Name})");
}
}
else
else if (archetype.Elements != null) // Skip if no Elements (ex: Comment node)
{
foreach (var element in archetype.Elements)
{