Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339853 - NPE at org.eclipse.pde.internal.ui.editor.feature.LicenseFeatureSection.refresh(LicenseFeatureSection.java:280)
Summary: NPE at org.eclipse.pde.internal.ui.editor.feature.LicenseFeatureSection.refre...
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows Server 2008
: P3 normal (vote)
Target Milestone: 3.7 M7   Edit
Assignee: Curtis Windatt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-14 05:24 EDT by Philippe Coucaud CLA
Modified: 2011-03-15 12:24 EDT (History)
1 user (show)

See Also:


Attachments
stack trace (3.29 KB, text/plain)
2011-03-14 05:25 EDT, Philippe Coucaud CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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