fix nullpointer in JedisPooledSummoner
Jedis pool when null it calls shutdown so added an check to check if its null
This commit is contained in:
parent
c1ad902bd3
commit
af4e180b2c
|
@ -37,7 +37,9 @@ public class JedisPooledSummoner implements Summoner<JedisPooled> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
this.jedisPool.close();
|
if (this.jedisPool != null) {
|
||||||
|
this.jedisPool.close();
|
||||||
|
}
|
||||||
this.jedisPooled.close();
|
this.jedisPooled.close();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue