commit | e8f72c73d08d82bfb7eff34019293bb91d27f511 | [log] [tgz] |
---|---|---|
author | Guillaume Nodet <gnodet@apache.org> | Wed Aug 12 14:13:49 2009 +0000 |
committer | Guillaume Nodet <gnodet@apache.org> | Wed Aug 12 14:13:49 2009 +0000 |
tree | 85a24f369785ed382b270ca54c274302eb02ddba | |
parent | 9cb7cb893f01e8c443cb627c85c87564e504b0b5 [diff] |
Avoid possible NPE git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@803523 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/karaf/gshell/gshell-config/src/main/java/org/apache/felix/karaf/gshell/config/completers/ConfigurationCompleter.java b/karaf/gshell/gshell-config/src/main/java/org/apache/felix/karaf/gshell/config/completers/ConfigurationCompleter.java index 022596f..8ee9ca8 100644 --- a/karaf/gshell/gshell-config/src/main/java/org/apache/felix/karaf/gshell/config/completers/ConfigurationCompleter.java +++ b/karaf/gshell/gshell-config/src/main/java/org/apache/felix/karaf/gshell/config/completers/ConfigurationCompleter.java
@@ -50,6 +50,9 @@ Configuration[] configs; try { configs = admin.listConfigurations(null); + if (configs == null) { + return; + } } catch (Exception e) { return; }