2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-22 20:28:00 +00:00

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:
mohammed jasem alaajel 2022-10-17 08:27:55 +04:00
parent c1ad902bd3
commit af4e180b2c
No known key found for this signature in database

View File

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