Skip to content

Commit 12fa5d0

Browse files
committed
Fix DynamicPluginProjectReferences.getDependentProjects
- Guard against PluginRegistry::findModel returning null before applying IPluginModelBase::getUnderlyingResource.
1 parent d45f47e commit 12fa5d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public List<IProject> getDependentProjects(IBuildConfiguration buildConfiguratio
4747
return ClasspathComputer.collectBuildRelevantDependencies(Set.of(bundle)).stream()
4848
.map(b -> (org.osgi.resource.Resource) b) //
4949
.filter(dependency -> dependency != bundle).map(PluginRegistry::findModel)
50+
.filter(Objects::nonNull)
5051
.map(IPluginModelBase::getUnderlyingResource).filter(Objects::nonNull)
5152
.map(IResource::getProject).distinct().toList();
5253
}

0 commit comments

Comments
 (0)