Issue #158 is fixed: Response.get() returns null if redis returned null (i.e. when using zscore for a non existing member)
This commit is contained in:
@@ -24,10 +24,12 @@ public class Response<T> {
|
||||
"Please close pipeline or multi block before calling this method.");
|
||||
}
|
||||
if (!built) {
|
||||
if (data instanceof JedisDataException){
|
||||
throw new JedisDataException((JedisDataException)data);
|
||||
if(data != null ){
|
||||
if (data instanceof JedisDataException){
|
||||
throw new JedisDataException((JedisDataException)data);
|
||||
}
|
||||
response = builder.build(data);
|
||||
}
|
||||
response = builder.build(data);
|
||||
this.data = null;
|
||||
built = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user