Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] #5682 - Cloning events list to prevent synchronization issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bleege committed Jul 14, 2016
1 parent f2585b3 commit 95e5d12
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,9 @@ protected Void doInBackground(Void... voids) {
// =========
JSONArray jsonArray = new JSONArray();

for (Hashtable<String, Object> evt : events) {
Vector<Hashtable<String, Object>> eventsClone = (Vector<Hashtable<String, Object>>) events.clone();

for (Hashtable<String, Object> evt : eventsClone) {
JSONObject jsonObject = new JSONObject();

// Build the JSON but only if there's a value for it in the evt
Expand Down

0 comments on commit 95e5d12

Please sign in to comment.