zrlw opened a new pull request, #15430:
URL: https://github.com/apache/dubbo/pull/15430
## What is the purpose of the change?
The method setRegistry of AbstractInterfaceConfig could add null to the
registries list of the configuration object, and it will trigger NPE at
post-processing.
```
Caused by: java.lang.NullPointerException
at
org.apache.dubbo.config.AbstractInterfaceConfig.lambda$postProcessAfterScopeModelChanged$0(AbstractInterfaceConfig.java:270)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at
org.apache.dubbo.config.AbstractInterfaceConfig.postProcessAfterScopeModelChanged(AbstractInterfaceConfig.java:269)
at
org.apache.dubbo.config.ServiceConfigBase.postProcessAfterScopeModelChanged(ServiceConfigBase.java:121)
at
org.apache.dubbo.config.ServiceConfig.postProcessAfterScopeModelChanged(ServiceConfig.java:181)
at
org.apache.dubbo.config.AbstractConfig.setScopeModel(AbstractConfig.java:452)
```
see details at
https://github.com/apache/dubbo/actions/runs/15430607790/job/43427972014
## Checklist
- [x] Make sure there is a
[GitHub_issue](https://github.com/apache/dubbo/issues) field for the change.
- [x] Write a pull request description that is detailed enough to understand
what the pull request does, how, and why.
- [x] Write necessary unit-test to verify your logic correction. If the new
feature or significant change is committed, please remember to add sample in
[dubbo samples](https://github.com/apache/dubbo-samples) project.
- [x] Make sure gitHub actions can pass. [Why the workflow is failing and
how to fix it?](../CONTRIBUTING.md)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]