You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2016/03/28 17:41:43 UTC

karaf git commit: KARAF-4456 - Handle features repositories without name in the WebConsole Features plugin

Repository: karaf
Updated Branches:
  refs/heads/karaf-4.0.x bd61817e0 -> 4aa29a032


KARAF-4456 - Handle features repositories without name in the WebConsole Features plugin


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

Branch: refs/heads/karaf-4.0.x
Commit: 4aa29a032f1e882bc9f8d9b4cc5a7b7fa3bf4c0e
Parents: bd61817
Author: Jean-Baptiste Onofré <jb...@apache.org>
Authored: Mon Mar 28 17:41:07 2016 +0200
Committer: Jean-Baptiste Onofré <jb...@apache.org>
Committed: Mon Mar 28 17:41:07 2016 +0200

----------------------------------------------------------------------
 .../org/apache/karaf/webconsole/features/FeaturesPlugin.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/4aa29a03/webconsole/features/src/main/java/org/apache/karaf/webconsole/features/FeaturesPlugin.java
----------------------------------------------------------------------
diff --git a/webconsole/features/src/main/java/org/apache/karaf/webconsole/features/FeaturesPlugin.java b/webconsole/features/src/main/java/org/apache/karaf/webconsole/features/FeaturesPlugin.java
index 2a291f5..b866b95 100644
--- a/webconsole/features/src/main/java/org/apache/karaf/webconsole/features/FeaturesPlugin.java
+++ b/webconsole/features/src/main/java/org/apache/karaf/webconsole/features/FeaturesPlugin.java
@@ -273,7 +273,9 @@ public class FeaturesPlugin extends AbstractWebConsolePlugin {
             for (Repository r : repositories) {
                 jw.object();
                 jw.key("name");
-                String name = r.getName();
+                String name = "";
+                if (r.getName() != null)
+                    name = r.getName();
                 jw.value(name);
                 jw.key("url");
                 String uri = r.getURI().toString();