Polish spring-cloud-incubator/spring-cloud-alibaba#591
@@ -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);
+ if (!isEmpty(urls)) {
urls.remove(url);
- this.allExportedURLs.addAll(key, urls);
+ allExportedURLs.addAll(key, urls);
+ }
}
/**
