Skip to content

Commit 9f0efd1

Browse files
committed
Add null check when getting fragment host wire provider
If the host is missing or does not build an NPE occurred (issue #1819)
1 parent fd1002d commit 9f0efd1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/DependencyManager.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ public static Set<BundleDescription> findRequirementsClosure(Collection<BundleDe
206206
// to ensure it's added again below. In the subsequent
207207
// processing this fragment's requirements will then also be
208208
// considered (before it was discarded).
209-
closure.remove(hostWire.getProvider());
209+
if (hostWire.getProviderWiring() != null) {
210+
closure.remove(hostWire.getProvider());
211+
}
210212
}
211213
}
212214

0 commit comments

Comments
 (0)