e-mzungu/rjc — Issue #16: HMSET javadoc should say about null values
Author: aeremenok
Created: 2011-12-26 10:12:18+00:00
State: open

Javadoc of `org.idevlab.rjc.RedisOperations#hmset` doesn't say anything about map with null values, passed as `hash`.

Although, the method throws an exception on such map:

```java.lang.NullPointerException
at org.idevlab.rjc.util.SafeEncoder.encode(SafeEncoder.java:31)
at org.idevlab.rjc.util.SafeEncoder.encode(SafeEncoder.java:48)
at org.idevlab.rjc.ds.RedisConnectionImpl.sendCommand(RedisConnectionImpl.java:78)
at org.idevlab.rjc.ds.PoolableRedisConnection.sendCommand(PoolableRedisConnection.java:159)
at org.idevlab.rjc.RedisClientImpl.getStatusReply(RedisClientImpl.java:52)
at org.idevlab.rjc.RedisSessionImpl.hmset(RedisSessionImpl.java:183)
at org.idevlab.rjc.RedisNode$35.doIt(RedisNode.java:339)
at org.idevlab.rjc.RedisNode$35.doIt(RedisNode.java:337)
at org.idevlab.rjc.RedisTemplate.execute(RedisTemplate.java:44)
at org.idevlab.rjc.RedisNode.execute(RedisNode.java:1116)
at org.idevlab.rjc.RedisNode.hmset(RedisNode.java:337)
at org.idevlab.rjc.sharding.ShardedRedis.hmset(ShardedRedis.java:143)
```