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

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

commit 402b37989f089730357676907039bc213ae52bed
Author: Marius Cornescu <marius_corne...@yahoo.com>
AuthorDate: Thu Sep 26 12:09:25 2019 +0200

    Fix failing tests.
---
 .../java/org/apache/camel/component/hdfs/HdfsConfiguration.java    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConfiguration.java
 
b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConfiguration.java
index c938dfa..c12d4ef 100644
--- 
a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConfiguration.java
+++ 
b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConfiguration.java
@@ -206,7 +206,12 @@ public class HdfsConfiguration {
 
     private List<String> getKerberosNamedNodeList(Map<String, Object> 
hdfsSettings) {
         kerberosNamedNodes = getString(hdfsSettings, "kerberosNamedNodes", 
kerberosNamedNodes);
-        return 
Arrays.stream(kerberosNamedNodes.split(",")).distinct().collect(Collectors.toList());
+        
+        if (isNotEmpty(kerberosNamedNodes)) {
+            return 
Arrays.stream(kerberosNamedNodes.split(",")).distinct().collect(Collectors.toList());
+        }
+
+        return Collections.emptyList();
     }
 
     public void checkConsumerOptions() {

Reply via email to