Fixed bug with Help window where clicking a treenode that does not have a .html file associated with it would produce an error.

This commit is contained in:
David Sparer
2016-06-20 12:51:25 -06:00
parent cbe18b70ca
commit 92dcd8981d

View File

@@ -246,7 +246,7 @@ namespace mRemoteNG.UI.Window
private void tvIndex_AfterSelect(Object sender, TreeViewEventArgs e)
{
if (((string)e.Node.Tag) != "")
if (((string)e.Node.Tag) != "" && e.Node.Tag != null)
{
wbHelp.Navigate(GeneralAppInfo.HomePath + "\\Help\\" + Convert.ToString(e.Node.Tag) +".htm");
}