You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ba...@apache.org on 2025/03/26 06:00:57 UTC
(pulsar) branch branch-3.0 updated: [improve][client] Prevent NullPointException when closing ClientCredentialsFlow (#24123)
This is an automated email from the ASF dual-hosted git repository.
baodi pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 8d9ae133cb6 [improve][client] Prevent NullPointException when closing ClientCredentialsFlow (#24123)
8d9ae133cb6 is described below
commit 8d9ae133cb6c4188c6a1b3bb461592729121db24
Author: Baodi Shi <ba...@apache.org>
AuthorDate: Wed Mar 26 13:58:30 2025 +0800
[improve][client] Prevent NullPointException when closing ClientCredentialsFlow (#24123)
(cherry picked from commit b402985db972d32021eb354f160ce7a5ed443e39)
---
.../apache/pulsar/client/impl/auth/oauth2/ClientCredentialsFlow.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/auth/oauth2/ClientCredentialsFlow.java b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/auth/oauth2/ClientCredentialsFlow.java
index 5736c67fb16..ef10f1afdb6 100644
--- a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/auth/oauth2/ClientCredentialsFlow.java
+++ b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/auth/oauth2/ClientCredentialsFlow.java
@@ -109,7 +109,9 @@ class ClientCredentialsFlow extends FlowBase {
@Override
public void close() throws Exception {
- exchanger.close();
+ if (exchanger != null) {
+ exchanger.close();
+ }
}
/**