Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2008-03-05 19:41:46 +0000
committerDJ Houghton2008-03-05 19:41:46 +0000
commit3392c13010931a9cdabc537ca40313899f90f67b (patch)
tree148307649d4d3f0ab58576ddc27e0c08ea9cc822
parent7b8d06372b90510a07fe54bcaeb6ad52d857f76e (diff)
downloadrt.equinox.p2-3392c13010931a9cdabc537ca40313899f90f67b.tar.gz
rt.equinox.p2-3392c13010931a9cdabc537ca40313899f90f67b.tar.xz
rt.equinox.p2-3392c13010931a9cdabc537ca40313899f90f67b.zip
Bug 221573 - [reconciler] Strange file: URL in platform.xml file
-rw-r--r--bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/update/Utils.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/update/Utils.java b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/update/Utils.java
index e58f988a2..871f1bd5c 100644
--- a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/update/Utils.java
+++ b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/update/Utils.java
@@ -53,6 +53,9 @@ public class Utils {
// normalize to not have leading / so we can check the form
File file = new File(path);
path = file.toString().replace('\\', '/');
+ // handle URLs that don't have a path
+ if (path.length() == 0)
+ return url;
if (Character.isUpperCase(path.charAt(0))) {
char[] chars = path.toCharArray();
chars[0] = Character.toLowerCase(chars[0]);

Back to the top