Skip to content

Commit

Permalink
[ISSUE alibaba#3876] [NA] failed to update serviceName: DEFAULT_GROUP…
Browse files Browse the repository at this point in the history
…@@prod-zipkin (alibaba#4866)
  • Loading branch information
realJackSun committed Feb 4, 2021
1 parent b6ecce4 commit c455a90
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ public List<ServiceInfo> getSubscribeServices() {
*/
public ServiceInfo processServiceJson(String json) {
ServiceInfo serviceInfo = JacksonUtils.toObj(json, ServiceInfo.class);
ServiceInfo oldService = serviceInfoMap.get(serviceInfo.getKey());
String serviceKey = serviceInfo.getKey();
if (serviceKey == null) {
return null;
}
ServiceInfo oldService = serviceInfoMap.get(serviceKey);

if (pushEmptyProtection && !serviceInfo.validate()) {
//empty or error push, just ignore
Expand Down

0 comments on commit c455a90

Please sign in to comment.