File tree Expand file tree Collapse file tree
ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727
2828import org .eclipse .core .resources .IResource ;
2929import org .eclipse .core .runtime .CoreException ;
30+ import org .eclipse .core .runtime .ILog ;
3031import org .eclipse .osgi .service .resolver .BundleDescription ;
3132import org .eclipse .osgi .service .resolver .State ;
3233import org .eclipse .pde .core .plugin .IPluginModelBase ;
@@ -206,7 +207,12 @@ public static Set<BundleDescription> findRequirementsClosure(Collection<BundleDe
206207 // to ensure it's added again below. In the subsequent
207208 // processing this fragment's requirements will then also be
208209 // considered (before it was discarded).
209- closure .remove (hostWire .getProvider ());
210+ if (hostWire .getProviderWiring () != null ) {
211+ closure .remove (hostWire .getProvider ());
212+ } else {
213+ ILog .of (DependencyManager .class ).error (
214+ String .format ("Error resolving host of %s" , wiring .getRevision ().getSymbolicName ())); //$NON-NLS-1$
215+ }
210216 }
211217 }
212218
You can’t perform that action at this time.
0 commit comments