Repository: karaf
Updated Branches:
  refs/heads/karaf-2.x 7effe2591 -> eacb51cac


[KARAF-2995]ensure filter isn't empty


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

Branch: refs/heads/karaf-2.x
Commit: eacb51caced4591abadac73bf574ae8a93d17ec9
Parents: 7effe25
Author: Freeman Fang <[email protected]>
Authored: Thu May 29 14:37:03 2014 +0800
Committer: Freeman Fang <[email protected]>
Committed: Thu May 29 14:37:03 2014 +0800

----------------------------------------------------------------------
 .../shell/security/impl/SecuredCommandConfigTransformer.java      | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/eacb51ca/shell/console/src/main/java/org/apache/karaf/shell/security/impl/SecuredCommandConfigTransformer.java
----------------------------------------------------------------------
diff --git 
a/shell/console/src/main/java/org/apache/karaf/shell/security/impl/SecuredCommandConfigTransformer.java
 
b/shell/console/src/main/java/org/apache/karaf/shell/security/impl/SecuredCommandConfigTransformer.java
index 2991c48..1b1c69b 100644
--- 
a/shell/console/src/main/java/org/apache/karaf/shell/security/impl/SecuredCommandConfigTransformer.java
+++ 
b/shell/console/src/main/java/org/apache/karaf/shell/security/impl/SecuredCommandConfigTransformer.java
@@ -189,6 +189,9 @@ public class SecuredCommandConfigTransformer implements 
ConfigurationListener {
             }
         }
         
+        if (filter.length() == 0) {
+            return;
+        }
 
         
         BundleContext bundleContext = 
event.getReference().getBundle().getBundleContext();

Reply via email to