From c426779005db65e3a01dfb0ed3c7e7a57fdb663d Mon Sep 17 00:00:00 2001 From: Kai Kreuzer Date: Sun, 3 Jan 2016 23:39:39 +0100 Subject: [PATCH] only install if name is not blank Signed-off-by: Kai Kreuzer --- .../org/openhab/core/karaf/internal/FeatureInstaller.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.core.karaf/src/main/java/org/openhab/core/karaf/internal/FeatureInstaller.java b/bundles/org.openhab.core.karaf/src/main/java/org/openhab/core/karaf/internal/FeatureInstaller.java index 99f70592e9..226a28d0c1 100644 --- a/bundles/org.openhab.core.karaf/src/main/java/org/openhab/core/karaf/internal/FeatureInstaller.java +++ b/bundles/org.openhab.core.karaf/src/main/java/org/openhab/core/karaf/internal/FeatureInstaller.java @@ -12,6 +12,7 @@ import java.util.Map; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; +import org.apache.commons.lang.StringUtils; import org.apache.karaf.features.Feature; import org.apache.karaf.features.FeaturesService; import org.slf4j.Logger; @@ -68,8 +69,10 @@ public class FeatureInstaller { private void installFeatures(String type, String install) { for (String addon : install.split(",")) { - String name = PREFIX + type + "-" + addon.trim(); - installFeature(name); + if (StringUtils.isNotBlank(addon)) { + String name = PREFIX + type + "-" + addon.trim(); + installFeature(name); + } } }