Skip to content

Commit af39d55

Browse files
oEmbedler Incphilwebb
authored andcommitted
Fix potential NPE in RedisAutoConfiguration
Closes spring-projectsgh-5667
1 parent 6eeda76 commit af39d55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/redis/RedisAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ protected final RedisClusterConfiguration getClusterConfiguration() {
125125
clusterProperties.getNodes());
126126

127127
if (clusterProperties.getMaxRedirects() != null) {
128-
config.setMaxRedirects(config.getMaxRedirects());
128+
config.setMaxRedirects(clusterProperties.getMaxRedirects());
129129
}
130130
return config;
131131
}

0 commit comments

Comments
 (0)