Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bdd2fd3

Browse files
committedAug 1, 2024·
catch the specific expected exception
1 parent 151f93f commit bdd2fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/System.Windows.Forms/src/System/Windows/Forms/Controls/ListView/ListView.ListViewItemCollection.IInnerList.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ internal interface IInnerList
3535
{
3636
return this[index];
3737
}
38-
catch
38+
catch (InvalidOperationException)
3939
{
4040
return null;
4141
}

0 commit comments

Comments
 (0)
Please sign in to comment.