+ minor NPE check (not needed but better to be safe)

This commit is contained in:
Costin Leau
2011-03-11 21:29:38 +02:00
parent d7db64fdbf
commit 47a941da47

View File

@@ -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());