Community
Participate
Working Groups
STEPS TO REPRODUCE 1) create a feature project, let's call it com.example.exampleapp.product 2) in that feature project create a product definition file which references a non-existent icon file, something like: <launcher name="ExampleApp"> <linux icon="/com.example.exampleapp.branding/icons/LinuxIcon.xpm"/> </launcher> Note that the icon file ("/com.example.exampleapp.branding/icons/LinuxIcon.xpm") must not exist in the workspace. 3) invoke the site.p2 action on the com.example.exampleapp.product feature project ACTUAL RESULT an NPE is thrown during creation of the p2 site: [start com.example.exampleapp.product:eclipse.feature$0.1.0.qualifier#site.p2] : java.lang.NullPointerException EXPECTED RESULT a warning is displayed, stating that the product file references non-existent icon file, otherwise the site.p2 action completes successfully ADDITIONAL INFO it seems that the problems lies in org.eclipse.buckminster.pde.tasks.EquinoxExecutableAction.peruseIcons(IBrandingAdvice advice) lines 54-55: 54: IResource iconRes = prj.findMember(iconPath.removeFirstSegments(1)); 55: if (iconRes.exists()) { the org.eclipse.core.resources.IContainer.findMember(IPath path) method returns null when the path passed to it as a parameter does not designate an existing resource, in such case NPE is obviously thrown on the following line
This was fixed a while ago in revision 11651.