Marlinski / Rumble

Rumble allows the sharing of messages and pictures without relying on the Internet, in a Delay Tolerant Fashion following the Store-Carry and Forward paradigm
http://disruptedsystems.org
GNU General Public License v3.0
298 stars 27 forks source link

java.util.ConcurrentModificationException #54

Open AmitPrajapati1902 opened 7 years ago

AmitPrajapati1902 commented 7 years ago

When i have list of messages around 200 messages, that will send at time to other newly join device this error it will show.

> 01-04 17:51:18.883 26856-27526/? E/AndroidRuntime: FATAL EXCEPTION: Thread-4663
> java.lang.IllegalArgumentException: n <= 0: 0 at java.util.Random.nextInt(Random.java:175) at > >rumble.network.services.push.PushService$MessageDispatcher.pickMessage(PushService.java:431)
> at .rumble.network.services.push.PushService$MessageDispatcher.run(PushService.java:274)
> 01-04 17:52:11.453 27619-28038/E/AndroidRuntime: FATAL EXCEPTION: Thread-4712
> java.util.ConcurrentModificationException
> at java.util.ArrayList$ArrayListIterator.next(ArrayList.java:573)   
> at rumble.network.services.push.PushService$MessageDispatcher.updateMax(PushService.java:369)
> rumble.network.services.push.PushService$MessageDispatcher.pickMessage(PushService.java:428)
> rumble.network.services.push.PushService$MessageDispatcher.run(PushService.java:274)