Fix display problem if configMgr is opened: no configuration should be preselected.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@744959 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java
index a364682..ba5800b 100644
--- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java
+++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManager.java
@@ -208,9 +208,12 @@
     {
 
         // extract the configuration pid from the request path
-        String pid = request.getPathInfo();
-        pid = pid.substring( pid.lastIndexOf( '/' ) + 1 );
-
+        String pid = request.getPathInfo().substring(this.getLabel().length() + 1);
+        if ( pid.length() == 0 ) {
+            pid = null;
+        } else {
+            pid = pid.substring( pid.lastIndexOf( '/' ) + 1 );
+        }
         // check whether the pid is actually a filter for the selection
         // of configurations to display, if the filter correctly converts
         // into an OSGi filter, we use it to select configurations