This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch name-is-empty in repository https://gitbox.apache.org/repos/asf/camel.git
commit 94841cf59d050abd7fe84505f6f0053041067be6 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sun Jul 23 14:21:56 2023 +0200 Use null in NoSuchBean exception as the name was purpously empty to bind by type. --- .../java/org/apache/camel/impl/engine/CamelPostProcessorHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelPostProcessorHelper.java b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelPostProcessorHelper.java index de7fc2125a8..83b007ea8de 100644 --- a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelPostProcessorHelper.java +++ b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelPostProcessorHelper.java @@ -337,7 +337,7 @@ public class CamelPostProcessorHelper implements CamelContextAware { } return answer; } - throw new NoSuchBeanException(name, type.getName()); + throw new NoSuchBeanException(null, type.getName()); } else if (found.size() > 1) { throw new NoSuchBeanException( "Found " + found.size() + " beans of type: " + type + ". Only one bean expected.");