Concurrent Modification Exception on Android 10
duocnguyen6799 opened this issue · 4 comments
duocnguyen6799 commented
mmimeault commented
Hello, could you please provide more information?
Stacktrace?
SDK version?
How to reproduce?
On my side, we are using the latest version intensively or many devices and we don't have that error.
Thanks
duocnguyen6799 commented
I have just updated the information on this issue.
mmimeault commented
@duocnguyen6799 Issue is fixed now?
mmimeault commented
Does make sense. The mCallbacks list is not thread safe.
Just realized I don't have this stack trace because I don't use registerListener nor unregisterListener.
Easy fix could be
- to add
synchronized, - or use a thread-safe version of the Array list (Collections.synchronizedList or CopyOnWriteArrayList)
- or any other better suggestion.
