Community
Participate
Working Groups
On linux, With the 3.6 IBuild repository in my list of available repositories, I hit Ctrl+Shift+Alt+A, to get the "Add Artifact to Target Platform" dialog. I entered "org.eclipse.core.net.win32.x86" and got the NPE below. Now, when I go edit my target platform, there is a new location "Unspecified site" with nothing under it. Going to the Content tab shows only a "Resolving..." which never goes away, a debugger shows no worker threads doing anything. java.lang.NullPointerException at org.eclipse.pde.internal.core.target.IUBundleContainer.resolveWithSlicer(IUBundleContainer.java:417) at org.eclipse.pde.internal.core.target.IUBundleContainer.resolveBundles(IUBundleContainer.java:197) at org.eclipse.pde.internal.core.target.AbstractBundleContainer.resolve(AbstractBundleContainer.java:97) at org.eclipse.pde.internal.core.target.TargetDefinition.resolve(TargetDefinition.java:239) at org.eclipse.pde.internal.core.target.provisional.LoadTargetDefinitionJob.handleReload(LoadTargetDefinitionJob.java:361) at org.eclipse.pde.internal.core.target.provisional.LoadTargetDefinitionJob.loadPlugins(LoadTargetDefinitionJob.java:284) at org.eclipse.pde.internal.core.target.provisional.LoadTargetDefinitionJob.runInWorkspace(LoadTargetDefinitionJob.java:141) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Removing the "Unspecified Site" from the target lets the content tab show content again.
This is caused by the bundle container having fIncludeMultipleEnvironments==false The IU being added does not match the current platform, and the slicer returns null because the input IUs don't match the platform. The status can be seen on slicer.getStatus() The inability to resolve the contents of the target is caused by this same NPE.
Created attachment 168987 [details] patch
Patch works great, thanks Andrew! Applied to HEAD and 3.6.1. Darin, please review.
Verified.
Verified that the fix to bug 324336 didn't remove this fix in M20100902-1717.