Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2010-12-13 23:39:58 -0500
committerPascal Rapicault2010-12-13 23:39:58 -0500
commit9ba5e0d94bc5fc29e37bb4a0b4447ad479e021bc (patch)
treeeeb694fabf36e7c1b3a69cdad06b809ff6827665
parent9aedeeb0fbc087db948ae717fb854727e2e21d17 (diff)
downloadrt.equinox.p2-9ba5e0d94bc5fc29e37bb4a0b4447ad479e021bc.tar.gz
rt.equinox.p2-9ba5e0d94bc5fc29e37bb4a0b4447ad479e021bc.tar.xz
rt.equinox.p2-9ba5e0d94bc5fc29e37bb4a0b4447ad479e021bc.zip
Bug 332444 - NPE in generateSiteReferences if no metadata repository in IPublisherInfo
-rw-r--r--bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/eclipse/FeaturesAction.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/eclipse/FeaturesAction.java b/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/eclipse/FeaturesAction.java
index 5e1c915af..8467d1a5c 100644
--- a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/eclipse/FeaturesAction.java
+++ b/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/eclipse/FeaturesAction.java
@@ -494,6 +494,9 @@ public class FeaturesAction extends AbstractPublisherAction {
}
protected void generateSiteReferences(Feature feature, IPublisherResult result, IPublisherInfo publisherInfo) {
+ if (publisherInfo.getMetadataRepository() == null)
+ return;
+
//publish feature site references
URLEntry updateURL = feature.getUpdateSite();
//don't enable feature update sites by default since this results in too many

Back to the top