Skip to content

Commit

Permalink
fix bug for NPE in reset sentinels
Browse files Browse the repository at this point in the history
  • Loading branch information
qifanwang committed Oct 21, 2024
1 parent 4ff393c commit fd767a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<HostPort> toManyKeepers = tooManyKeepers(slaves);
Expand Down

0 comments on commit fd767a1

Please sign in to comment.