Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339853

Summary: NPE at org.eclipse.pde.internal.ui.editor.feature.LicenseFeatureSection.refresh(LicenseFeatureSection.java:280)
Product: [Eclipse Project] PDE Reporter: Philippe Coucaud <phil_fj12>
Component: UIAssignee: Curtis Windatt <curtis.windatt.public>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public
Version: 3.7   
Target Milestone: 3.7 M7   
Hardware: PC   
OS: Windows Server 2008   
Whiteboard:
Attachments:
Description Flags
stack trace none

Description Philippe Coucaud CLA 2011-03-14 05:24:25 EDT
Build Identifier: I20110310-1119 (3.7M5)

Editing a feature.xml file without a license section triggers a NPE (might be related to bug 333788).

Reproducible: Always

Steps to Reproduce:
1. Open a valid feature.xml (e.g. default one generated when creating a new feature project)
2. Remove the <license></license> section
3. Save, close the editor and open the feature.xml file again. 
4. Switch to the Information tab: NPE is thrown (stack trace to be attached)
Comment 1 Philippe Coucaud CLA 2011-03-14 05:25:55 EDT
Created attachment 191092 [details]
stack trace
Comment 2 Curtis Windatt CLA 2011-03-15 12:24:21 EDT
Fixed in HEAD.  Added better error checking the UI, an index out of bounds check in the feature implementation and improved all the javadoc.  Tested some of the other sections on the information page and nothing threw any exceptions.

See Feature, IFeature, LicenseFeatureSection