Skip to content

Commit

Permalink
[Client] Don't try to close threadlocal client when it's null
Browse files Browse the repository at this point in the history
  • Loading branch information
avano committed Jan 26, 2023
1 parent 4ba3763 commit b6b712c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public OpenshiftClient getClient() {

public void closeClient() {
getClient().close();
threadLocalClient.set(null);
if (threadLocalClient != null) {
threadLocalClient.set(null);
}
openshiftClient = null;
}
}

0 comments on commit b6b712c

Please sign in to comment.