Repository: camel Updated Branches: refs/heads/camel-2.12.x da561c8b4 -> 7f2805625 refs/heads/camel-2.13.x 9ce8405c5 -> f52f373ec refs/heads/master 2d6736a5a -> 05efe4902
CAMEL-7406: Avoid NPE when password empty in JCR endpoint URI Signed-off-by: Gregor Zurowski <gre...@zurowski.org> Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/1073c973 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/1073c973 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/1073c973 Branch: refs/heads/master Commit: 1073c9737e8f2f003966170aca0bdd6751e4396a Parents: 57bc5fb Author: Gregor Zurowski <gre...@zurowski.org> Authored: Thu May 1 22:39:09 2014 -0400 Committer: Gregor Zurowski <gre...@zurowski.org> Committed: Thu May 1 22:42:00 2014 -0400 ---------------------------------------------------------------------- .../src/main/java/org/apache/camel/component/jcr/JcrEndpoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/1073c973/components/camel-jcr/src/main/java/org/apache/camel/component/jcr/JcrEndpoint.java ---------------------------------------------------------------------- diff --git a/components/camel-jcr/src/main/java/org/apache/camel/component/jcr/JcrEndpoint.java b/components/camel-jcr/src/main/java/org/apache/camel/component/jcr/JcrEndpoint.java index bdfddf4..b0f2e79 100644 --- a/components/camel-jcr/src/main/java/org/apache/camel/component/jcr/JcrEndpoint.java +++ b/components/camel-jcr/src/main/java/org/apache/camel/component/jcr/JcrEndpoint.java @@ -56,7 +56,7 @@ public class JcrEndpoint extends DefaultEndpoint { String[] creds = uri.getUserInfo().split(":"); if (creds != null) { String username = creds[0]; - String password = creds.length > 1 ? creds[1] : null; + String password = creds.length > 1 ? creds[1] : ""; this.credentials = new SimpleCredentials(username, password.toCharArray()); } }