syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gwim...@apache.org
Subject [1/2] syncope git commit: [SYNCOPE-604] allow configuring empty connid location list
Date Mon, 10 Nov 2014 09:55:58 GMT
Repository: syncope
Updated Branches:
  refs/heads/1_2_X 241f9bbd5 -> 46d897f06


[SYNCOPE-604] allow configuring empty connid location list


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/13a96634
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/13a96634
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/13a96634

Branch: refs/heads/1_2_X
Commit: 13a96634476577b3fb81bbf33d2946b525029497
Parents: 4e29d42
Author: Guido Wimmel <gwimmel@apache.org>
Authored: Mon Nov 10 10:52:09 2014 +0100
Committer: Guido Wimmel <gwimmel@apache.org>
Committed: Mon Nov 10 10:52:09 2014 +0100

----------------------------------------------------------------------
 .../java/org/apache/syncope/core/util/ConnIdBundleManager.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/13a96634/core/src/main/java/org/apache/syncope/core/util/ConnIdBundleManager.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/syncope/core/util/ConnIdBundleManager.java b/core/src/main/java/org/apache/syncope/core/util/ConnIdBundleManager.java
index 52ac798..4790982 100644
--- a/core/src/main/java/org/apache/syncope/core/util/ConnIdBundleManager.java
+++ b/core/src/main/java/org/apache/syncope/core/util/ConnIdBundleManager.java
@@ -72,7 +72,7 @@ public class ConnIdBundleManager {
     private void init() {
         if (locations == null) {
             locations = new ArrayList<URI>();
-            for (String location : stringLocations == null ? new String[0] : stringLocations.split(","))
{
+            for (String location : StringUtils.isBlank(stringLocations) ? new String[0] :
stringLocations.split(",")) {
                 try {
                     locations.add(URIUtil.buildForConnId(location));
                     LOG.info("Valid ConnId location: {}", location.trim());


Mime
View raw message