fix NPE in memory properties
This commit is contained in:
parent
09b30ad7b6
commit
0ea35b8af5
1 changed files with 6 additions and 1 deletions
|
@ -76,7 +76,12 @@ public class MemoryPropertiesSessionCodec implements Codec<Session> {
|
|||
|
||||
private Properties toProperties(Map<String, Object> map) {
|
||||
Properties properties = new Properties();
|
||||
properties.putAll(map);
|
||||
map.forEach((k,v) -> {
|
||||
// filter non-null keys and values for properties semantics
|
||||
if (k != null && v != null) {
|
||||
properties.put(k, v);
|
||||
}
|
||||
});
|
||||
return properties;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue