Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Loading status checks…
Fix npe (#10457)
- dubbo-3.2.2
- dubbo-3.2.1
- dubbo-3.2.0
- dubbo-3.2.0-beta.6
- dubbo-3.2.0-beta.5
- dubbo-3.2.0-beta.4
- dubbo-3.2.0-beta.3
- dubbo-3.2.0-beta.2
- dubbo-3.2.0-beta.1
- dubbo-3.1.10
- dubbo-3.1.9
- dubbo-3.1.8
- dubbo-3.1.7
- dubbo-3.1.6
- dubbo-3.1.5
- dubbo-3.1.4
- dubbo-3.1.3
- dubbo-3.1.2
- dubbo-3.1.1
- dubbo-3.1.0
- dubbo-3.0.15
- dubbo-3.0.14
- dubbo-3.0.13
- dubbo-3.0.12
- dubbo-3.0.11
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...n/java/org/apache/dubbo/configcenter/support/zookeeper/ZookeeperDynamicConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| } | |||
| @Override | |||
| protected void doRemoveListener(String pathKey, ConfigurationListener listener) { | |||
| ZookeeperDataListener zookeeperDataListener = cacheListener.removeListener(pathKey, listener); | |||
|
|||
|
|||
| if (CollectionUtils.isEmpty(zookeeperDataListener.getListeners())) { | |||
| if (zookeeperDataListener != null && CollectionUtils.isEmpty(zookeeperDataListener.getListeners())) { | |||
| zkClient.removeDataListener(pathKey, zookeeperDataListener); | |||
| } | |||
| } | |||
| } | |||