aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-11-29 13:09:56 +0100
committeriNPUTmice <daniel@gultsch.de>2014-11-29 13:09:56 +0100
commit1ff9293ee14a3989fa8a112f28e7f611b49bfb7a (patch)
treeaed2ba2dbc9b6cd7bcb07da62fa4cca7da34f836 /src/main
parent3d8a2e7923b3e7028fd1541ed7ff5d74735d892b (diff)
fix for concurrency issue
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/eu/siacs/conversations/services/AvatarService.java2
1 files changed, 1 insertions, 1 deletions
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<MucOptions.User> users = mucOptions.getUsers();
+ final List<MucOptions.User> users = new ArrayList<>(mucOptions.getUsers());
int count = users.size();
bitmap = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);