Testcase attached.
Select the item in the List.
Click on the Button to remove the item.
Click again on the Button to remove the item if the selectedIndex is not -1
You should get a stack with a Range exception.
Select the item in the List.
Click on the Button to remove the item.
Click again on the Button to remove the item if the selectedIndex is not -1
You should get a stack with a Range exception.