This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch 3.2
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.2 by this push:
new 5d50209404 Cert npe bug fix (#11800)
5d50209404 is described below
commit 5d50209404cc15f5b4a37258c80327eecd713310
Author: wxbty <[email protected]>
AuthorDate: Mon Mar 13 15:44:13 2023 +0800
Cert npe bug fix (#11800)
* fix npe
* fix npe
---------
Co-authored-by: x-shadow-man <[email protected]>
---
.../java/org/apache/dubbo/security/cert/CertDeployerListener.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git
a/dubbo-plugin/dubbo-security/src/main/java/org/apache/dubbo/security/cert/CertDeployerListener.java
b/dubbo-plugin/dubbo-security/src/main/java/org/apache/dubbo/security/cert/CertDeployerListener.java
index 8dcf3e7318..8edd581d11 100644
---
a/dubbo-plugin/dubbo-security/src/main/java/org/apache/dubbo/security/cert/CertDeployerListener.java
+++
b/dubbo-plugin/dubbo-security/src/main/java/org/apache/dubbo/security/cert/CertDeployerListener.java
@@ -49,7 +49,9 @@ public class CertDeployerListener implements
ApplicationDeployListener {
@Override
public void onStopping(ApplicationModel scopeModel) {
- dubboCertManager.disConnect();
+ if (dubboCertManager != null) {
+ dubboCertManager.disConnect();
+ }
}
@Override
@@ -59,6 +61,8 @@ public class CertDeployerListener implements
ApplicationDeployListener {
@Override
public void onFailure(ApplicationModel scopeModel, Throwable cause) {
- dubboCertManager.disConnect();
+ if (dubboCertManager != null) {
+ dubboCertManager.disConnect();
+ }
}
}