Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Done
-
Labels:
Description
Syncing cohort from the cohort landing page will throw exception and make the apps showing the message that it's stop working with the following stacktrace:
07-10 06:31:40.986 4138-4172/com.muzima E/AndroidRuntime﹕ FATAL EXCEPTION: IntentService[DataSyncService] java.util.ConcurrentModificationException at java.util.AbstractList$SubAbstractList.size(AbstractList.java:360) at com.muzima.utils.StringUtils.getCommaSeparatedStringFromList(StringUtils.java:18) at com.muzima.controller.EncounterController.downloadEncountersByPatientUuids(EncounterController.java:44) at com.muzima.service.MuzimaSyncService.downloadEncountersForPatientsByPatientUUIDs(MuzimaSyncService.java:408) at com.muzima.service.MuzimaSyncService.downloadEncountersForPatientsByCohortUUIDs(MuzimaSyncService.java:393) at com.muzima.service.DataSyncService.downloadObservationsAndEncounters(DataSyncService.java:158) at com.muzima.service.DataSyncService.onHandleIntent(DataSyncService.java:94) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.os.HandlerThread.run(HandlerThread.java:60)