Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix npe (#10457)
BurningCN committed Aug 15, 2022
1 parent 438519c commit 6b095f1
Showing 1 changed file with 1 addition and 1 deletion.
}
@Override
protected void doRemoveListener(String pathKey, ConfigurationListener listener) {
ZookeeperDataListener zookeeperDataListener = cacheListener.removeListener(pathKey, listener);

COLLECTOR-SAHAB / differentiating test: MultipleConsumerAndProviderTest

listener.url.urlParam.timestamp=1684766701138 only occurs in the original version.

COLLECTOR-SAHAB / differentiating test: MultipleConsumerAndProviderTest

listener.url.urlParam.timestamp=1684767053983 only occurs in the patched version.

if (CollectionUtils.isEmpty(zookeeperDataListener.getListeners())) {
if (zookeeperDataListener != null && CollectionUtils.isEmpty(zookeeperDataListener.getListeners())) {
zkClient.removeDataListener(pathKey, zookeeperDataListener);
}
}
}

0 comments on commit 6b095f1

Please sign in to comment.