From 13e82ad3cfb7db7a01c57a8f99c383a2e53ce4ee Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Mon, 7 Jun 2021 08:50:36 +0300 Subject: [PATCH] Fixed - RedisSentinel.getMaster() method throws NPE #3643 --- .../main/java/org/redisson/redisnode/SentinelRedisNode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redisson/src/main/java/org/redisson/redisnode/SentinelRedisNode.java b/redisson/src/main/java/org/redisson/redisnode/SentinelRedisNode.java index d13f760ef..81452e102 100644 --- a/redisson/src/main/java/org/redisson/redisnode/SentinelRedisNode.java +++ b/redisson/src/main/java/org/redisson/redisnode/SentinelRedisNode.java @@ -250,12 +250,12 @@ public class SentinelRedisNode implements RedisSentinel, RedisSentinelAsync { @Override public RFuture> getMasterAsync(String masterName) { - return executeAsync(null, null, -1, RedisCommands.SENTINEL_MASTER, masterName); + return executeAsync(null, StringCodec.INSTANCE, -1, RedisCommands.SENTINEL_MASTER, masterName); } @Override public RFuture failoverAsync(String masterName) { - return executeAsync(null, null, -1, RedisCommands.SENTINEL_FAILOVER, masterName); + return executeAsync(null, StringCodec.INSTANCE, -1, RedisCommands.SENTINEL_FAILOVER, masterName); } @Override