Fix double write NPE (#4886)
This commit is contained in:
parent
8dfaabdaf3
commit
3af5c03c52
@ -104,6 +104,7 @@ public class ServiceChangeV1Task extends AbstractDelayTask {
|
||||
serviceTask.getContent());
|
||||
ServiceManager serviceManager = ApplicationUtils.getBean(ServiceManager.class);
|
||||
Service service = serviceManager.getService(serviceTask.getNamespace(), serviceTask.getServiceName());
|
||||
if (null != service) {
|
||||
switch (serviceTask.getContent()) {
|
||||
case METADATA:
|
||||
dispatchMetadataTask(service, serviceTask.isEphemeral());
|
||||
@ -114,6 +115,7 @@ public class ServiceChangeV1Task extends AbstractDelayTask {
|
||||
default:
|
||||
dispatchAllTask(service, serviceTask.isEphemeral());
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user