Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipeline Response NullPointerException #286

Closed
shijinkui opened this issue Apr 28, 2012 · 4 comments
Closed

pipeline Response NullPointerException #286

shijinkui opened this issue Apr 28, 2012 · 4 comments

Comments

@shijinkui
Copy link

调用的代码:

    Pipeline p = jedis.pipelined();
    Response<String> a = p.get(...
    Response<String> b = p.get(...
    Response<Set<String>> c = p.zrevrange(...
    p.sync();

报错的地方: jedis Response.get()的时候,如果pipeline里有null的东西,就报错。

Response should be support null result.

java.lang.NullPointerException
at java.lang.String.(String.java:515)
at redis.clients.util.SafeEncoder.encode(SafeEncoder.java:28)
at redis.clients.jedis.BuilderFactory$5.build(BuilderFactory.java:55)
at redis.clients.jedis.BuilderFactory$5.build(BuilderFactory.java:58)
at redis.clients.jedis.Response.get(Response.java:27)

@ivowiblo
Copy link
Contributor

Could you provide the complete code that reproduces de error?

@ivowiblo
Copy link
Contributor

Duplicated #272

@ivowiblo
Copy link
Contributor

duplicated #194

It's fixed in 2.1

@sunqb
Copy link

sunqb commented Jul 22, 2019

@ivowiblo thank you 。it is ok when i change the version to 2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants