This commit is contained in:
Bill Burke 2017-04-29 17:03:36 -04:00
parent 1f4311a02c
commit af792b8abe

View file

@ -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();
} }