From e218d531bb74e1a5ba074b2bec259f44e42f5063 Mon Sep 17 00:00:00 2001 From: wqliang Date: Thu, 19 Dec 2019 19:10:49 +0800 Subject: [PATCH] check setDivision not empty instead of not null --- core/src/main/java/com/qq/tars/client/ObjectProxyFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }