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

WxOpenInRedisConfigStorage初始化报错 #1546

Closed
zacat opened this issue May 6, 2020 · 1 comment
Closed

WxOpenInRedisConfigStorage初始化报错 #1546

zacat opened this issue May 6, 2020 · 1 comment

Comments

@zacat
Copy link

zacat commented May 6, 2020

简要描述

简单概括描述下你所遇到的问题。
WxOpenInRedisConfigStorage inRedisConfigStorage = new WxOpenInRedisConfigStorage(pool, "zoeyun:" + clientId);

模块版本情况

  • WxJava 模块名: weixin-java-open
  • WxJava 版本号: 3.7.0

详细描述

WxOpenInRedisConfigStorage inRedisConfigStorage = new WxOpenInRedisConfigStorage(pool, "zoeyun:" + clientId);
对象构造时因继承自,WxOpenInMemoryConfigStorage 对象,WxOpenInMemoryConfigStorage 对象初始化时
private Lock componentAccessTokenLock = getLockByKey("componentAccessTokenLock");
执行getLockByKey方法,但在WxOpenInRedisConfigStorage 对象中,未初始化完成,此时redisOps对象值为空,导致Null报错。

lkqm added a commit to lkqm/WxJava that referenced this issue May 12, 2020
binarywang pushed a commit that referenced this issue May 12, 2020
@binarywang
Copy link
Owner

3.7.9.B版本已修复

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

2 participants