This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 54a907139ad CAMEL-19868: fixed throwing an incorrect exception for 
null URIs
54a907139ad is described below

commit 54a907139ad22c506ce9ead87515f9c877f35fd1
Author: Otavio Rodolfo Piske <angusyo...@gmail.com>
AuthorDate: Thu Sep 14 13:25:53 2023 +0200

    CAMEL-19868: fixed throwing an incorrect exception for null URIs
---
 .../src/main/java/org/apache/camel/support/EndpointHelper.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/core/camel-support/src/main/java/org/apache/camel/support/EndpointHelper.java 
b/core/camel-support/src/main/java/org/apache/camel/support/EndpointHelper.java
index a24f6101bcb..c37820caa3f 100644
--- 
a/core/camel-support/src/main/java/org/apache/camel/support/EndpointHelper.java
+++ 
b/core/camel-support/src/main/java/org/apache/camel/support/EndpointHelper.java
@@ -161,7 +161,7 @@ public final class EndpointHelper {
     public static String normalizeEndpointUri(String uri) {
         try {
             uri = URISupport.normalizeUri(uri);
-        } catch (URISyntaxException e) {
+        } catch (Exception e) {
             throw new ResolveEndpointFailedException(uri, e);
         }
         return uri;

Reply via email to