Open AmitPrajapati1902 opened 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)
When i have list of messages around 200 messages, that will send at time to other newly join device this error it will show.