Skip to content

Commit

Permalink
Ensure toolbox type exists
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Sep 26, 2022
1 parent 535f263 commit c70ca30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Bonsai.Editor/EditorForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2292,7 +2292,10 @@ private async void docsToolStripMenuItem_Click(object sender, EventArgs e)
if (typeNode != null && typeNode.Tag != null)
{
var type = Type.GetType(typeNode.Name);
await OpenDocumentationAsync(type);
if (type != null)
{
await OpenDocumentationAsync(type);
}
return;
}
}
Expand Down

0 comments on commit c70ca30

Please sign in to comment.