Skip to content

Commit

Permalink
Fix null exceptions
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Carbonetto <[email protected]>
  • Loading branch information
acarbonetto committed Feb 15, 2024
1 parent ab0b3b3 commit 46896e6
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ public class JedisClient implements SyncClient {

@Override
public void closeConnection() {
jedisPool.close();
jedisCluster.close();
if (jedisCluster != null) {
jedisCluster.close();
}
if (jedisPool != null) {
jedisPool.close();
}
}

@Override
Expand Down

0 comments on commit 46896e6

Please sign in to comment.