Skip to content

Commit

Permalink
[bugfix] fix ConnectionCommonCache possible npe (#1959)
Browse files Browse the repository at this point in the history
  • Loading branch information
crossoverJie authored May 11, 2024
1 parent 78ca5ae commit 133a783
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ public void removeCache(T key) {
timeoutMap.remove(key);
C value = cacheMap.remove(key);
try {
if (value == null) {
return;
}
value.close();
} catch (Exception e) {
log.error("connection close error: {}.", e.getMessage(), e);
Expand Down

0 comments on commit 133a783

Please sign in to comment.