Skip to content

Commit

Permalink
Ignore empty password
Browse files Browse the repository at this point in the history
  • Loading branch information
koenpunt committed Sep 9, 2022
1 parent 31260a3 commit 9e7d48f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void channelActive(ChannelHandlerContext ctx) {

RedisClientConfig config = redisClient.getConfig();
String password = Objects.toString(config.getAddress().getPassword(), config.getPassword());
if (password != null) {
if (password != null && !password.equals("")) {
RFuture<Object> future;
String username = Objects.toString(config.getAddress().getUsername(), config.getUsername());
if (username != null) {
Expand Down

0 comments on commit 9e7d48f

Please sign in to comment.