Make data paths more robust
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / runtime / KernelUtils.java
index 2ada3c7269e2625e25bd78e6f28507c1889c11d5..0e84af62af45d8c5b2d22b0261cb3e1dcc2170b9 100644 (file)
@@ -74,6 +74,8 @@ class KernelUtils implements KernelConstants {
 
        public static URI getOsgiInstanceUri(String relativePath) {
                String osgiInstanceBaseUri = getFrameworkProp(OSGI_INSTANCE_AREA);
+               if (!osgiInstanceBaseUri.endsWith("/"))
+                       osgiInstanceBaseUri = osgiInstanceBaseUri + "/";
                if (osgiInstanceBaseUri != null)
                        return safeUri(osgiInstanceBaseUri + (relativePath != null ? relativePath : ""));
                else