xetorthio/jedis — Issue #256: NPE from smembers()
Author: ajassal
Created: 2012-02-02 20:09:54+00:00
State: open

I am connecting to a Redis 1.2.6 server from multiple application servers.

On some servers I see this exception. Apparently we are trying to pass a null to HashSet().

Exception in thread "main" java.lang.NullPointerException
at java.util.HashSet.(HashSet.java:99)
at redis.clients.jedis.Jedis.smembers(Jedis.java:1165)
...

Looking at the key from a python client, I see that the underlying set is empty (or probably missing).

Is this a supported use case? Connection from jedis 2.x to Redis 1.x server?