This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 887b069 [CAMEL-14437] Fix unit test
887b069 is described below
commit 887b0694fb81cbc2744db81f1706ba7790095d61
Author: Guillaume Nodet <[email protected]>
AuthorDate: Wed Jan 29 08:06:59 2020 +0100
[CAMEL-14437] Fix unit test
---
.../java/org/apache/camel/runtimecatalog/impl/AbstractCamelCatalog.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/core/camel-base/src/main/java/org/apache/camel/runtimecatalog/impl/AbstractCamelCatalog.java
b/core/camel-base/src/main/java/org/apache/camel/runtimecatalog/impl/AbstractCamelCatalog.java
index 17b0f08..b8fe410 100644
---
a/core/camel-base/src/main/java/org/apache/camel/runtimecatalog/impl/AbstractCamelCatalog.java
+++
b/core/camel-base/src/main/java/org/apache/camel/runtimecatalog/impl/AbstractCamelCatalog.java
@@ -343,7 +343,7 @@ public abstract class AbstractCamelCatalog {
try {
URI u = URISupport.normalizeUri(uri);
String scheme = u.getScheme();
- ComponentModel model = componentModel(scheme);
+ ComponentModel model = scheme != null ? componentModel(scheme) :
null;
if (model == null) {
EndpointValidationResult result = new
EndpointValidationResult(uri);
if (uri.startsWith("{{")) {