{"action":"created","issue":{"url":"https://api.github.com/repos/xetorthio/jedis/issues/958","labels_url":"https://api.github.com/repos/xetorthio/jedis/issues/958/labels{/name}","comments_url":"https://api.github.com/repos/xetorthio/jedis/issues/958/comments","events_url":"https://api.github.com/repos/xetorthio/jedis/issues/958/events","html_url":"https://github.com/xetorthio/jedis/issues/958","id":69926217,"number":958,"title":"JedisCluster.zscore throws a NPE when the member isn't present in the sorted set","user":{"login":"asterp","id":1671945,"avatar_url":"https://avatars.githubusercontent.com/u/1671945?v=3","gravatar_id":"","url":"https://api.github.com/users/asterp","html_url":"https://github.com/asterp","followers_url":"https://api.github.com/users/asterp/followers","following_url":"https://api.github.com/users/asterp/following{/other_user}","gists_url":"https://api.github.com/users/asterp/gists{/gist_id}","starred_url":"https://api.github.com/users/asterp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asterp/subscriptions","organizations_url":"https://api.github.com/users/asterp/orgs","repos_url":"https://api.github.com/users/asterp/repos","events_url":"https://api.github.com/users/asterp/events{/privacy}","received_events_url":"https://api.github.com/users/asterp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xetorthio/jedis/labels/COULD%20NOT%20REPRODUCE","name":"COULD NOT REPRODUCE","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-04-21T19:04:50Z","updated_at":"2015-04-27T00:57:24Z","closed_at":null,"body":"Hi, \r\nWhile testing the zscore command with jedis cluster I noticed that if a member whose zscore I am looking up in a sorted key doesn't exist it throws an exception. On the redis cli, it just returns (nil) in this case. "},"comment":{"url":"https://api.github.com/repos/xetorthio/jedis/issues/comments/96454599","html_url":"https://github.com/xetorthio/jedis/issues/958#issuecomment-96454599","issue_url":"https://api.github.com/repos/xetorthio/jedis/issues/958","id":96454599,"user":{"login":"asterp","id":1671945,"avatar_url":"https://avatars.githubusercontent.com/u/1671945?v=3","gravatar_id":"","url":"https://api.github.com/users/asterp","html_url":"https://github.com/asterp","followers_url":"https://api.github.com/users/asterp/followers","following_url":"https://api.github.com/users/asterp/following{/other_user}","gists_url":"https://api.github.com/users/asterp/gists{/gist_id}","starred_url":"https://api.github.com/users/asterp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asterp/subscriptions","organizations_url":"https://api.github.com/users/asterp/orgs","repos_url":"https://api.github.com/users/asterp/repos","events_url":"https://api.github.com/users/asterp/events{/privacy}","received_events_url":"https://api.github.com/users/asterp/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T00:57:24Z","updated_at":"2015-04-27T00:57:24Z","body":"Sure, I am using a single node in cluster setup. I've put all the hashslots on the same node.\r\n\r\nfinal Set<HostAndPort> jedisClusterNodes = new HashSet<HostAndPort>();\r\njedisClusterNodes.add(\"127.0.0.1\", 6379);  \r\nGenericObjectPoolConfig poolConfig = new GenericObjectPoolConfig();\r\n        // Number of total connections in our pool\r\n        poolConfig.setMaxTotal(10);\r\n        // Number of connections to Redis that just sit there and do nothing\r\n        poolConfig.setMaxIdle(5);\r\n\r\n        //Jedis Cluster will attempt to discover cluster nodes automatically\r\n        JedisCluster jc = new JedisCluster(jedisClusterNodes, poolConfig);\r\n\r\njc.zscore(\"to_be_expired\", \"1234\");\r\n"}}