synchronize around attributes in toContentValues()

This commit is contained in:
Daniel Gultsch 2019-05-22 23:58:08 +02:00
parent c7bd635996
commit e5378df39c
1 changed files with 3 additions and 1 deletions

View File

@ -576,7 +576,9 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
values.put(CREATED, created); values.put(CREATED, created);
values.put(STATUS, status); values.put(STATUS, status);
values.put(MODE, mode); values.put(MODE, mode);
values.put(ATTRIBUTES, attributes.toString()); synchronized (this.attributes) {
values.put(ATTRIBUTES, attributes.toString());
}
return values; return values;
} }