You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/06/28 03:18:54 UTC
[GitHub] [dubbo] crazyStar00 opened a new issue, #10222: ReferenceConfig.get NPE
crazyStar00 opened a new issue, #10222:
URL: https://github.com/apache/dubbo/issues/10222
<!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
使用api方式创建ReferenceConfig获取服务实例
```
ReferenceConfigCache referenceConfigCache = ReferenceConfigCache.getCache();
return referenceConfigCache.get(reference);
```
当第一次ReferenceConfig.init时会修改initialized的值,如果init失败,第二次init时,由于initialized=true,就直接返回了,ReferenceConfig.get获取到的代理对象就会为null。
```
public class ReferenceConfig
private void init() {
if (initialized) {
return;
}
....
```
### Environment
* Dubbo version: 2.6.2
* Operating System version: mac
* Java version: jdk 1.8
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] wangchengming666 closed issue #10222: ReferenceConfig.get NPE
Posted by GitBox <gi...@apache.org>.
wangchengming666 closed issue #10222: ReferenceConfig.get NPE
URL: https://github.com/apache/dubbo/issues/10222
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org