Repository: karaf Updated Branches: refs/heads/karaf-3.0.x 889bf96ed -> 10a4a93b5
[KARAF-2995]ensure filter isn't empty (cherry picked from commit eacb51caced4591abadac73bf574ae8a93d17ec9) Project: http://git-wip-us.apache.org/repos/asf/karaf/repo Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/10a4a93b Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/10a4a93b Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/10a4a93b Branch: refs/heads/karaf-3.0.x Commit: 10a4a93b5c376d8949e423c98bcbf144ea0bad80 Parents: 889bf96 Author: Freeman Fang <[email protected]> Authored: Thu May 29 14:37:03 2014 +0800 Committer: Freeman Fang <[email protected]> Committed: Thu May 29 14:38:56 2014 +0800 ---------------------------------------------------------------------- .../shell/security/impl/SecuredCommandConfigTransformer.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/karaf/blob/10a4a93b/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();
