diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-06-08 14:17:41 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-06-08 14:17:41 +0200 |
commit | 4ba1553eb76e25be83ec701d25e879fb9fca9bfc (patch) | |
tree | c50a42bf9d1e02f4a32c8bd6d0ff775397891eae /src/main/java/de/pixart/messenger | |
parent | 48b484ca4c81e9916ebde24a71dabd2e99fbfb22 (diff) |
synchronize around attributes in toContentValues()
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/entities/Conversation.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/entities/Conversation.java b/src/main/java/de/pixart/messenger/entities/Conversation.java index 8104e5ab1..b3e92fba2 100644 --- a/src/main/java/de/pixart/messenger/entities/Conversation.java +++ b/src/main/java/de/pixart/messenger/entities/Conversation.java @@ -639,7 +639,9 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl values.put(CREATED, created); values.put(STATUS, status); values.put(MODE, mode); - values.put(ATTRIBUTES, attributes.toString()); + synchronized (this.attributes) { + values.put(ATTRIBUTES, attributes.toString()); + } return values; } |