diff --git a/core/src/main/java/com/qq/tars/client/ObjectProxyFactory.java b/core/src/main/java/com/qq/tars/client/ObjectProxyFactory.java index 4629fd88..146ae7e6 100644 --- a/core/src/main/java/com/qq/tars/client/ObjectProxyFactory.java +++ b/core/src/main/java/com/qq/tars/client/ObjectProxyFactory.java @@ -51,7 +51,7 @@ public ObjectProxy getObjectProxy(Class api, String objName, String se servantProxyConfig.setCommunicatorId(communicator.getId()); servantProxyConfig.setModuleName(communicator.getCommunicatorConfig().getModuleName(), communicator.getCommunicatorConfig().isEnableSet(), communicator.getCommunicatorConfig().getSetDivision()); servantProxyConfig.setLocator(communicator.getCommunicatorConfig().getLocator()); - if (setDivision != null) { + if (!StringUtils.isEmpty(setDivision)) { servantProxyConfig.setEnableSet(true); servantProxyConfig.setSetDivision(setDivision); }