You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@clerezza.apache.org by re...@apache.org on 2011/04/09 13:53:26 UTC

svn commit: r1090574 - /incubator/clerezza/trunk/parent/utils/src/main/java/org/apache/clerezza/utils/osgi/BundlePathNode.java

Author: reto
Date: Sat Apr  9 11:53:26 2011
New Revision: 1090574

URL: http://svn.apache.org/viewvc?rev=1090574&view=rev
Log:
Fixed to allow listing of children of the root element

Modified:
    incubator/clerezza/trunk/parent/utils/src/main/java/org/apache/clerezza/utils/osgi/BundlePathNode.java

Modified: incubator/clerezza/trunk/parent/utils/src/main/java/org/apache/clerezza/utils/osgi/BundlePathNode.java
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/parent/utils/src/main/java/org/apache/clerezza/utils/osgi/BundlePathNode.java?rev=1090574&r1=1090573&r2=1090574&view=diff
==============================================================================
--- incubator/clerezza/trunk/parent/utils/src/main/java/org/apache/clerezza/utils/osgi/BundlePathNode.java (original)
+++ incubator/clerezza/trunk/parent/utils/src/main/java/org/apache/clerezza/utils/osgi/BundlePathNode.java Sat Apr  9 11:53:26 2011
@@ -51,7 +51,7 @@ public class BundlePathNode implements P
 	public PathNode getSubPath(String requestPath) {
 		StringWriter mergedPath = new StringWriter(255);
 		mergedPath.append(path);
-		if (path.charAt(path.length() - 1) != '/') {
+		if ((!path.isEmpty()) && (path.charAt(path.length() - 1) != '/')) {
 			mergedPath.append('/');
 		}
 		if (requestPath.charAt(0) == '/') {