diff --git a/naming/src/main/java/com/alibaba/nacos/naming/core/DomainsManager.java b/naming/src/main/java/com/alibaba/nacos/naming/core/DomainsManager.java index 564cbea25..30dad3ee4 100644 --- a/naming/src/main/java/com/alibaba/nacos/naming/core/DomainsManager.java +++ b/naming/src/main/java/com/alibaba/nacos/naming/core/DomainsManager.java @@ -19,6 +19,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.TypeReference; +import com.alibaba.nacos.api.common.Constants; import com.alibaba.nacos.naming.misc.*; import com.alibaba.nacos.naming.push.PushService; import com.alibaba.nacos.naming.raft.Datum; @@ -510,6 +511,10 @@ public class DomainsManager { public String namespaceId; public Map domName2Checksum = new HashMap(); + public DomainChecksum() { + this.namespaceId = Constants.REQUEST_PARAM_DEFAULT_NAMESPACE_ID; + } + public DomainChecksum(String namespaceId) { this.namespaceId = namespaceId; }