From 1ff9293ee14a3989fa8a112f28e7f611b49bfb7a Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Sat, 29 Nov 2014 13:09:56 +0100 Subject: fix for concurrency issue --- src/main/java/eu/siacs/conversations/services/AvatarService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/eu/siacs/conversations/services/AvatarService.java b/src/main/java/eu/siacs/conversations/services/AvatarService.java index 1125859c3..70c1d4dd7 100644 --- a/src/main/java/eu/siacs/conversations/services/AvatarService.java +++ b/src/main/java/eu/siacs/conversations/services/AvatarService.java @@ -113,7 +113,7 @@ public class AvatarService { if (bitmap != null) { return bitmap; } - List users = mucOptions.getUsers(); + final List users = new ArrayList<>(mucOptions.getUsers()); int count = users.size(); bitmap = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); -- cgit v1.2.3