rokwire / safer-illinois-app

Source code repository of "Safer Illinois" App - the official COVID-19 app of the University of Illinois.
https://safer.illinois.edu/
Apache License 2.0
33 stars 23 forks source link

[BUG] Android: Fix ConcurrentModificationException when processing exposures #688

Closed dobromirdobrev closed 3 years ago

dobromirdobrev commented 3 years ago

Describe the bug Fix crash in Android reported in firebase console. Stacktrace:

Fatal Exception: java.util.ConcurrentModificationException
       at java.util.HashMap$HashIterator.nextNode(HashMap.java:1441)
       at java.util.HashMap$KeyIterator.next(HashMap.java:1465)
       at edu.illinois.covid.exposure.ExposurePlugin.processExposures(ExposurePlugin.java:39)
       at edu.illinois.covid.exposure.ExposurePlugin.access$1800(ExposurePlugin.java)
       at edu.illinois.covid.exposure.ExposurePlugin$9.run(ExposurePlugin.java:2)
       at java.util.TimerThread.mainLoop(TimerThread.java:562)
       at java.util.TimerThread.run(TimerThread.java:512)

To Reproduce There are no steps for reproducing.

Expected behavior No crash

Smartphone (please complete the following information):

dobromirdobrev commented 3 years ago

Fixed in version 2.10.35