You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2023/01/05 12:40:12 UTC
[camel] branch camel-3.20.x updated: camel-aws2-sns: Fix potential NPE when registering health checks
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch camel-3.20.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.20.x by this push:
new b8b1a2b4601 camel-aws2-sns: Fix potential NPE when registering health checks
b8b1a2b4601 is described below
commit b8b1a2b4601736ee03f8f70591400da5dc3d5a6d
Author: James Netherton <ja...@gmail.com>
AuthorDate: Thu Jan 5 11:00:00 2023 +0000
camel-aws2-sns: Fix potential NPE when registering health checks
---
.../main/java/org/apache/camel/component/aws2/sns/Sns2Endpoint.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/components/camel-aws/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Endpoint.java b/components/camel-aws/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Endpoint.java
index e879f93f48a..e945537fdcc 100644
--- a/components/camel-aws/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Endpoint.java
+++ b/components/camel-aws/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Endpoint.java
@@ -119,10 +119,9 @@ public class Sns2Endpoint extends DefaultEndpoint implements HeaderFilterStrateg
if (healthCheckRepository != null) {
clientHealthCheck = new Sns2HealthCheck(this, getId());
+ healthCheckRepository.addHealthCheck(clientHealthCheck);
}
- healthCheckRepository.addHealthCheck(clientHealthCheck);
-
if (configuration.getTopicArn() == null) {
try {
String nextToken = null;