mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-02 15:29:05 +00:00
Merge pull request #5667 from oembedler/master
* pull5667: Fix potential NPE in RedisAutoConfiguration
This commit is contained in:
+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