Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2008-04-24 20:13:03 +0000
committerJohn Arthorne2008-04-24 20:13:03 +0000
commit64978dd20ec2d36a21fb5d703cd96e6b2b5ceb97 (patch)
treec50749ba401e691dab19f6102124123892e58bee
parent8e8cc017f9a67e4a3a36876694180927df917a2f (diff)
downloadrt.equinox.p2-64978dd20ec2d36a21fb5d703cd96e6b2b5ceb97.tar.gz
rt.equinox.p2-64978dd20ec2d36a21fb5d703cd96e6b2b5ceb97.tar.xz
rt.equinox.p2-64978dd20ec2d36a21fb5d703cd96e6b2b5ceb97.zip
Bug 228730 No features when connecting to update site
-rw-r--r--bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/features/SiteModel.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/features/SiteModel.java b/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/features/SiteModel.java
index 363714ff2..419e8c437 100644
--- a/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/features/SiteModel.java
+++ b/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/features/SiteModel.java
@@ -172,6 +172,13 @@ public class SiteModel {
* @return url, or <code>null</code>
*/
public URL getLocationURL() {
+ if (locationURL == null && locationURLString != null) {
+ try {
+ locationURL = new URL(locationURLString);
+ } catch (MalformedURLException e) {
+ //ignore and return null
+ }
+ }
return locationURL;
}

Back to the top