1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00
mercyblitz 2019-04-24 21:09:39 +08:00
parent 49c6fedfe4
commit d3d1172508

View File

@ -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);
}
}
/**