Reply
Regular Contributor
Munmun
Posts: 53
0
Accepted Solution

Get the value of map

 

Hi I am getting the following  exception when I  try to run a test class.

I just remove the key based in condition from Map

 

So how to deal with this.

 

 

System.FinalException: Cannot modify a collection while it is being iterated

 

 

plz plz  reply   any one

 

 

 

 

Regular Contributor
cantchanand
Posts: 21
0

Re: Get the value of map

Hi,

 

You are using same collection on Page where you are modifying . DO one thing take the data in other collection and Modify the data and again take in same list . then use.

 

Let me know if need any help.

 

Anand Singh

 

Regular Contributor
Munmun
Posts: 53
0

Re: Get the value of map

Thanks Anand .
Regular Contributor
Munmun
Posts: 53
0

Re: Get the value of map

ITS WORKING thaks alot
Regular Contributor
cantchanand
Posts: 21
0

Re: Get the value of map

Your Welcome

 May I know your mail Id?

Regular Contributor
Munmun
Posts: 53
0

Re: Get the value of map