+ minor NPE check (not needed but better to be safe)
This commit is contained in:
@@ -87,7 +87,7 @@ public class JedisConnectionFactory implements InitializingBean, DisposableBean,
|
||||
*/
|
||||
protected Jedis fetchJedisConnector() {
|
||||
try {
|
||||
if (usePool) {
|
||||
if (usePool && pool != null) {
|
||||
return pool.getResource();
|
||||
}
|
||||
Jedis jedis = new Jedis(getShardInfo());
|
||||
|
||||
Reference in New Issue
Block a user