Fixed NPE in RedissonSession.save #1149

pull/1204/head
Nikita 7 years ago
parent f034500825
commit 65ac6f33db

@ -167,8 +167,10 @@ public class RedissonSession extends StandardSession {
newMap.put("session:isValid", isValid);
newMap.put("session:isNew", isNew);
for (Entry<String, Object> entry : attrs.entrySet()) {
newMap.put(entry.getKey(), entry.getValue());
if (attrs != null) {
for (Entry<String, Object> entry : attrs.entrySet()) {
newMap.put(entry.getKey(), entry.getValue());
}
}
map.putAll(newMap);

@ -171,8 +171,10 @@ public class RedissonSession extends StandardSession {
newMap.put("session:isValid", isValid);
newMap.put("session:isNew", isNew);
for (Entry<String, Object> entry : attrs.entrySet()) {
newMap.put(entry.getKey(), entry.getValue());
if (attrs != null) {
for (Entry<String, Object> entry : attrs.entrySet()) {
newMap.put(entry.getKey(), entry.getValue());
}
}
map.putAll(newMap);

@ -172,8 +172,10 @@ public class RedissonSession extends StandardSession {
newMap.put("session:isValid", isValid);
newMap.put("session:isNew", isNew);
for (Entry<String, Object> entry : attrs.entrySet()) {
newMap.put(entry.getKey(), entry.getValue());
if (attrs != null) {
for (Entry<String, Object> entry : attrs.entrySet()) {
newMap.put(entry.getKey(), entry.getValue());
}
}
map.putAll(newMap);

Loading…
Cancel
Save