At the line giving the exception.
The reason you get the exception, it's because you're trying to add something to a collection, that's already added.
Example could be:
Code:
//this will give an exception:
void AddItemToBag(Item item)
{
this.Bag.Items.Add(item);
}
//This will avoid it.
void AddItemToBag(Item item)
{
if (!this.Bag.Items.Contains(item))
this.Bag.Items.Add(item);
}