Fixed - Micronaut Session.put() method doesn't remove an entry if value = null

pull/6394/head
Nikita Koksharov 1 month ago
parent 74df70e8f8
commit 28d53efc76

@ -181,7 +181,7 @@ public class RedissonSession extends InMemorySession implements Session {
@Override
public MutableConvertibleValues<Object> put(CharSequence key, Object value) {
if (value == null) {
return super.put(key, value);
return remove(key);
}
if (updateMode == RedissonHttpSessionConfiguration.UpdateMode.WRITE_BEHIND && map != null) {

@ -181,7 +181,7 @@ public class RedissonSession extends InMemorySession implements Session {
@Override
public MutableConvertibleValues<Object> put(CharSequence key, Object value) {
if (value == null) {
return super.put(key, value);
return remove(key);
}
if (updateMode == RedissonHttpSessionConfiguration.UpdateMode.WRITE_BEHIND && map != null) {

@ -181,7 +181,7 @@ public class RedissonSession extends InMemorySession implements Session {
@Override
public MutableConvertibleValues<Object> put(CharSequence key, Object value) {
if (value == null) {
return super.put(key, value);
return remove(key);
}
if (updateMode == RedissonHttpSessionConfiguration.UpdateMode.WRITE_BEHIND && map != null) {

Loading…
Cancel
Save