diff --git a/redis/redis-checker/src/main/java/com/ctrip/xpipe/redis/checker/healthcheck/actions/sentinel/collector/command/ResetSentinels.java b/redis/redis-checker/src/main/java/com/ctrip/xpipe/redis/checker/healthcheck/actions/sentinel/collector/command/ResetSentinels.java index fec5c9f739..d10a718f04 100644 --- a/redis/redis-checker/src/main/java/com/ctrip/xpipe/redis/checker/healthcheck/actions/sentinel/collector/command/ResetSentinels.java +++ b/redis/redis-checker/src/main/java/com/ctrip/xpipe/redis/checker/healthcheck/actions/sentinel/collector/command/ResetSentinels.java @@ -429,7 +429,7 @@ public String getName() { @Override protected void doExecute() throws Throwable { - if (slaves.isEmpty()) + if (slaves == null || slaves.isEmpty()) future().setSuccess(new SentinelInvalidSlaves()); else { Set toManyKeepers = tooManyKeepers(slaves);