Fix potential NPE in RedisAutoConfiguration
Closes gh-5667
This commit is contained in:
committed by
Phillip Webb
parent
6eeda76af7
commit
af39d558ff
@@ -125,7 +125,7 @@ public class RedisAutoConfiguration {
|
||||
clusterProperties.getNodes());
|
||||
|
||||
if (clusterProperties.getMaxRedirects() != null) {
|
||||
config.setMaxRedirects(config.getMaxRedirects());
|
||||
config.setMaxRedirects(clusterProperties.getMaxRedirects());
|
||||
}
|
||||
return config;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user