mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-22 09:09:01 +00:00
Fix potential NPE in RedisAutoConfiguration
Closes gh-5667
This commit is contained in:
committed by
Phillip Webb
parent
6eeda76af7
commit
af39d558ff
+1
-1
@@ -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