fix
This commit is contained in:
parent
1f4311a02c
commit
af792b8abe
1 changed files with 6 additions and 0 deletions
|
@ -124,6 +124,12 @@ public class UserSessionAdapter implements UserSessionModel {
|
||||||
if (entity.getNotes() == null) {
|
if (entity.getNotes() == null) {
|
||||||
entity.setNotes(new ConcurrentHashMap<>());
|
entity.setNotes(new ConcurrentHashMap<>());
|
||||||
}
|
}
|
||||||
|
if (value == null) {
|
||||||
|
if (entity.getNotes().containsKey(name)) {
|
||||||
|
removeNote(name);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
entity.getNotes().put(name, value);
|
entity.getNotes().put(name, value);
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue