did you test this? this looks like it could be an ConcurrentModificationException