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
1 changed files with 3 additions and 1 deletions

View File

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