Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2010-02-09 20:58:53 +0000
committerDJ Houghton2010-02-09 20:58:53 +0000
commit47630b5366febb13438fb4a097a7dd4f39db3849 (patch)
treead8084551d37ffd2217c1f1958f0d3970b6b8975 /bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler
parent37f0a6eeb78cb0f6bc65f313c17173a86754601b (diff)
downloadrt.equinox.p2-47630b5366febb13438fb4a097a7dd4f39db3849.tar.gz
rt.equinox.p2-47630b5366febb13438fb4a097a7dd4f39db3849.tar.xz
rt.equinox.p2-47630b5366febb13438fb4a097a7dd4f39db3849.zip
Bug 300983 - [reconciler] emf site fails to install from dropins on M20100120-0800
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler')
-rw-r--r--bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/PlatformXmlListener.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/PlatformXmlListener.java b/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/PlatformXmlListener.java
index f89f24602..95a21cb7c 100644
--- a/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/PlatformXmlListener.java
+++ b/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/PlatformXmlListener.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2009 IBM Corporation and others.
+ * Copyright (c) 2007, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,8 +10,6 @@
*******************************************************************************/
package org.eclipse.equinox.internal.p2.reconciler.dropins;
-import org.eclipse.equinox.p2.core.ProvisionException;
-
import java.io.File;
import java.net.URI;
import java.net.URISyntaxException;
@@ -23,6 +21,7 @@ import org.eclipse.equinox.internal.p2.core.helpers.LogHelper;
import org.eclipse.equinox.internal.p2.extensionlocation.*;
import org.eclipse.equinox.internal.p2.update.*;
import org.eclipse.equinox.internal.provisional.p2.directorywatcher.DirectoryChangeListener;
+import org.eclipse.equinox.p2.core.ProvisionException;
import org.eclipse.equinox.p2.repository.artifact.IArtifactRepository;
import org.eclipse.equinox.p2.repository.metadata.IMetadataRepository;
import org.eclipse.osgi.util.NLS;
@@ -155,7 +154,10 @@ public class PlatformXmlListener extends DirectoryChangeListener {
return null;
IPath urlPath = new Path(urlString).makeAbsolute();
for (IMetadataRepository repo : repositoryList) {
- Path repoPath = new Path(URIUtil.toFile(repo.getLocation()).getAbsolutePath());
+ File file = URIUtil.toFile(repo.getLocation());
+ if (file == null)
+ continue;
+ Path repoPath = new Path(file.getAbsolutePath());
if (repoPath.makeAbsolute().equals(urlPath))
return repo;
// normalize the URLs to be the same

Back to the top