Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE during find unused dependencies in the MANIFEST.MF editor #930

Open
vogella opened this issue Nov 22, 2023 · 2 comments
Open

NPE during find unused dependencies in the MANIFEST.MF editor #930

vogella opened this issue Nov 22, 2023 · 2 comments

Comments

@vogella
Copy link
Contributor

vogella commented Nov 22, 2023

Pressing the Find unused dependencies on certain plug-ins result in the following NPE

image

java.lang.NullPointerException: Cannot invoke "org.eclipse.jdt.internal.compiler.lookup.ModuleBinding.getExports()" because "this.module" is null
at org.eclipse.jdt.internal.core.search.matching.ModularClassFileMatchLocator.matchPackageReferences(ModularClassFileMatchLocator.java:159)
at org.eclipse.jdt.internal.core.search.matching.ModularClassFileMatchLocator.locateMatches(ModularClassFileMatchLocator.java:52)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.process(MatchLocator.java:2014)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1370)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1407)
at org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1550)
at org.eclipse.jdt.internal.core.search.JavaSearchParticipant.locateMatches(JavaSearchParticipant.java:135)
at org.eclipse.jdt.internal.core.search.BasicSearchEngine.findMatches(BasicSearchEngine.java:254)
at org.eclipse.jdt.internal.core.search.BasicSearchEngine.search(BasicSearchEngine.java:600)
at org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:669)
at org.eclipse.pde.internal.ui.search.dependencies.GatherUnusedDependenciesOperation.provideJavaClasses(GatherUnusedDependenciesOperation.java:206)
at org.eclipse.pde.internal.ui.search.dependencies.GatherUnusedDependenciesOperation.isUnused(GatherUnusedDependenciesOperation.java:176)
at org.eclipse.pde.internal.ui.search.dependencies.GatherUnusedDependenciesOperation.run(GatherUnusedDependenciesOperation.java:121)
at org.eclipse.pde.internal.ui.search.dependencies.UnusedDependenciesJob.run(UnusedDependenciesJob.java:41)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

@iloveeclipse
Copy link
Member

Pressing the Find unused dependencies on certain plug-ins

Please provide steps to reproduce.

@Dinesh0723
Copy link
Contributor

The issue is not reproducible in Eclipse IDE, version: 2023-06 (4.28.0). Please let me know the eclipse version in which you are testing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants