mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
This commit is contained in:
parent
49c6fedfe4
commit
d3d1172508
@ -293,9 +293,12 @@ public class DubboServiceMetadataRepository {
|
||||
|
||||
public void unexportURL(URL url) {
|
||||
String key = url.getServiceKey();
|
||||
// NPE issue : https://github.com/spring-cloud-incubator/spring-cloud-alibaba/issues/591
|
||||
List<URL> urls = allExportedURLs.get(key);
|
||||
urls.remove(url);
|
||||
this.allExportedURLs.addAll(key, urls);
|
||||
if (!isEmpty(urls)) {
|
||||
urls.remove(url);
|
||||
allExportedURLs.addAll(key, urls);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user