Browse Source

Fix/issue 3221 argument out of range exception

pull/3271/head
LAPTOP-SB0RO65G\samra 10 months ago
parent
commit
e6edca9169
  1. 2
      ICSharpCode.ILSpyX/TreeView/SharpTreeNodeCollection.cs

2
ICSharpCode.ILSpyX/TreeView/SharpTreeNodeCollection.cs

@ -73,7 +73,7 @@ namespace ICSharpCode.ILSpyX.TreeView @@ -73,7 +73,7 @@ namespace ICSharpCode.ILSpyX.TreeView
public SharpTreeNode this[int index] {
get {
if (index >= 0)
if (index >= 0 && index < list.Count)
return list[index];
else
return null;

Loading…
Cancel
Save