From 7022fce8e4168991f0d5b53eb83f8a5d36ff11cc Mon Sep 17 00:00:00 2001 From: saleson Date: Wed, 10 Jan 2018 22:18:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fm/gray/client/BaseGrayManager.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fm-cloud/fm-cloud-plugins/fm-cloud-graybunny/src/main/java/com/fm/gray/client/BaseGrayManager.java b/fm-cloud/fm-cloud-plugins/fm-cloud-graybunny/src/main/java/com/fm/gray/client/BaseGrayManager.java index 427fdbf..0cf78fc 100644 --- a/fm-cloud/fm-cloud-plugins/fm-cloud-graybunny/src/main/java/com/fm/gray/client/BaseGrayManager.java +++ b/fm-cloud/fm-cloud-plugins/fm-cloud-graybunny/src/main/java/com/fm/gray/client/BaseGrayManager.java @@ -31,7 +31,12 @@ public void openForWork() { @Override public List listGrayService() { if (grayServiceMap == null) { - updateGrayServices(super.listGrayService()); + List grayServices = super.listGrayService(); + if (grayServices == null) { + return null; + + } + updateGrayServices(grayServices); } return new ArrayList<>(grayServiceMap.values()); } @@ -64,7 +69,7 @@ protected void serviceShutdown() { @Override public void updateGrayServices(Collection grayServices) { - if(grayServices==null){ + if (grayServices == null) { return; } Map grayMap = new HashMap<>();