protect against null

This commit is contained in:
Lars Brubaker 2022-05-31 15:40:17 -07:00
parent 039c0a0710
commit de5d809b00

View file

@ -380,7 +380,10 @@ namespace MatterHackers.MatterControl
{
var newNode = new HelpArticleTreeNode(helpArticle, theme);
nodesByPath[helpArticle.Path] = newNode;
if (!string.IsNullOrEmpty(helpArticle.Path))
{
nodesByPath[helpArticle.Path] = newNode;
}
if (helpArticle.Name == guideKey
|| (guideKey != null