IramML / UberClone

App like Uber, rider and driver application
MIT License
164 stars 129 forks source link

Help please there is getting an error of 'java.util.ConcurrentModificationException' and the Rider App Crashes when loadAllAvailableDriver method is called #11

Closed reda-moumen closed 4 years ago

reda-moumen commented 4 years ago

Hello, I'd like to thank you first for the great job you did, and for making it open source you helped us so much in our study project. On the other hand, many users of your app are getting the error of ### 'java.util.ConcurrentModificationException' and the Rider App Crashes when loadAllAvailableDriver method is called :

java.util.ConcurrentModificationException at java.util.ArrayList$Itr.next(ArrayList.java:860) at com.iramml.uberclone.riderapp.Activities.Home.loadAllAvailableDriver(Home.java:710) at com.iramml.uberclone.riderapp.Activities.Home.access$500(Home.java:115) at com.iramml.uberclone.riderapp.Activities.Home$22.onDataChange(Home.java:690) at com.google.firebase.database.core.ValueEventRegistration.fireEvent(com.google.firebase:firebase-database@@19.3.0:75) at com.google.firebase.database.core.view.DataEvent.fire(com.google.firebase:firebase-database@@19.3.0:63) at com.google.firebase.database.core.view.EventRaiser$1.run(com.google.firebase:firebase-database@@19.3.0:55) at android.os.Handler.handleCallback(Handler.java:888) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:213) at android.app.ActivityThread.main(ActivityThread.java:8178) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)

IramML commented 4 years ago

I'm going to check this today, I'm going to take the opportunity to migrate to androidx this project

IramML commented 4 years ago

This bug is already fixed on this new commit