Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.emf.common/src/org/eclipse/emf/common/util/DelegatingResourceLocator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.common/src/org/eclipse/emf/common/util/DelegatingResourceLocator.java b/plugins/org.eclipse.emf.common/src/org/eclipse/emf/common/util/DelegatingResourceLocator.java
index b434c7ed4..c137e34a2 100644
--- a/plugins/org.eclipse.emf.common/src/org/eclipse/emf/common/util/DelegatingResourceLocator.java
+++ b/plugins/org.eclipse.emf.common/src/org/eclipse/emf/common/util/DelegatingResourceLocator.java
@@ -200,7 +200,8 @@ public abstract class DelegatingResourceLocator implements ResourceLocator
{
this.bundleLocalization = bundleLocalization;
}
- baseURL = new URL(uri.toString() + "/");
+ String baseURI = uri.toString();
+ baseURL = new URL(baseURI.endsWith("/") ? baseURI : baseURI + "/");
}
catch (IOException exception)
{

Back to the top