kotlin ConcurrentModificationException at an attribute that is not modified

53 Views Asked by At

I have the folowing problem:

I have two mutableLists ( offerDisplay and drawStack), both lists contains the same type of objects. First there is no exception when i want the size of drawstack, then i remove a a object out of offerDisplay. After that, when i again try to get the size of drwaStack, i get the ConcurrentModificationException. Getting the size of offerDisplay is after the remove is not a Problem. The two lists are in an object, in the order "val offerDisplay..., val drawStack".

Is it possible that maybe offerDisplay overwrites something at drawSack or anything else?

enter image description here

0

There are 0 best solutions below