synchronize around attributes in toContentValues()

This commit is contained in:
Daniel Gultsch 2019-05-22 23:58:08 +02:00
parent c7bd635996
commit e5378df39c

View file

@ -576,7 +576,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;
}