Fix potential NPE in RedisAutoConfiguration
Closes gh-5667
This commit is contained in:
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue