Skip to content

Commit

Permalink
Merge pull request #2200 from HubSpot/s3_uploader_client_efficiency
Browse files Browse the repository at this point in the history
One additional null check in uploader client return
  • Loading branch information
ssalinas authored Apr 9, 2021
2 parents fac6f07 + 4603b05 commit 776efde
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void run() {

public synchronized void tryRemoveClient(String key) {
AtomicInteger holds = clientHolds.get(key);
if (holds.get() == 0) {
if (holds != null && holds.get() == 0) {
clientHolds.remove(key);
clientByKey.remove(key);
}
Expand Down

0 comments on commit 776efde

Please sign in to comment.