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

Getting a Null Pointer Exception, system packages are not available #1453

Open
Khushboo-Sharma-110597 opened this issue Oct 25, 2024 · 1 comment

Comments

@Khushboo-Sharma-110597
Copy link
Contributor

I am getting below exception.
getSystemPackage is returning null for my case because i dont have any value present for org.osgi.framework.system.packages
and i am getting null pointer pointer exception due to that , there should be null pointer check inside resolveState function, this check is maintained everywhere but it is missing in resolveState only
java.lang.NullPointerException
at java.base/java.util.Hashtable.put(Hashtable.java:476)
at org.eclipse.pde.internal.build.site.PDEState.resolveState(PDEState.java:444)
at org.eclipse.pde.internal.build.site.BuildTimeSite.getRegistry(BuildTimeSite.java:147)
at org.eclipse.pde.internal.build.builder.BuildDirector.computeElements(BuildDirector.java:140)
at org.eclipse.pde.internal.build.builder.BuildDirector.generateChildrenScripts(BuildDirector.java:295)
at org.eclipse.pde.internal.build.builder.BuildDirector.generate(BuildDirector.java:244)
at org.eclipse.pde.internal.build.builder.BuildDirector.generate(BuildDirector.java:237)
at org.eclipse.pde.internal.build.BuildScriptGenerator.generateFeatures(BuildScriptGenerator.java:265)
at org.eclipse.pde.internal.build.BuildScriptGenerator.generate(BuildScriptGenerator.java:147)
at org.eclipse.pde.internal.core.exports.FeatureExportOperation.doExport(FeatureExportOperation.java:310)
at org.eclipse.pde.internal.core.exports.FeatureBasedExportOperation.run(FeatureBasedExportOperation.java:63)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

my profileProps looks like this
profileProps = {org.osgi.framework.bootdelegation=sun.,com.sun., org.osgi.framework.executionenvironment=OSGi/Minimum-1.0, org.eclipse.jdt.core.compiler.problem.assertIdentifier=ignore, org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.1, org.osgi.framework.system.capabilities=osgi.ee; osgi.ee="OSGi/Minimum"; version:Version="1.0", org.eclipse.jdt.core.compiler.source=1.3, org.osgi.framework.system.packages=, osgi.java.profile.name=OSGi/Minimum-1.0, org.eclipse.jdt.core.compiler.problem.enumIdentifier=ignore, org.eclipse.jdt.core.compiler.compliance=1.3}

@Khushboo-Sharma-110597
Copy link
Contributor Author

Khushboo-Sharma-110597 commented Oct 25, 2024

i have raised a pr for this, please review
#1455

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

1 participant