mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-12-23 02:28:01 +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:
parent
c1ad902bd3
commit
af4e180b2c
@ -37,7 +37,9 @@ public class JedisPooledSummoner implements Summoner<JedisPooled> {
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
this.jedisPool.close();
|
||||
if (this.jedisPool != null) {
|
||||
this.jedisPool.close();
|
||||
}
|
||||
this.jedisPooled.close();
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user