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
public SharpTreeNode this[int index] { public SharpTreeNode this[int index] {
get { get {
if (index >= 0) if (index >= 0 && index < list.Count)
return list[index]; return list[index];
else else
return null; return null;

Loading…
Cancel
Save