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

Bug 333757

Summary: NPE thrown when clicking 'Delete' button in the 'Project Facets' property page
Product: [WebTools] WTP Common Tools Reporter: Remy Suen <remy.suen>
Component: Faceted Project FrameworkAssignee: Konstantin Komissarchik <konstantin>
Status: NEW --- QA Contact: Konstantin Komissarchik <konstantin>
Severity: normal    
Priority: P3 CC: ccc
Version: unspecified   
Target Milestone: Future   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Remy Suen CLA 2011-01-07 10:32:26 EST
1. Install WTP from Indigo.
2. Make a new simple project.
3. Open its properties.
4. Open the 'Project Facets' page and click the 'Convert to faceted form...' hyperlink. The page changes.
5. Click the 'Delete' button. Nothing happens. An NPE is logged.

java.lang.NullPointerException
	at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectFrameworkImpl.deletePreset(FacetedProjectFrameworkImpl.java:384)
	at org.eclipse.wst.common.project.facet.core.ProjectFacetsManager.deletePreset(ProjectFacetsManager.java:231)
	at org.eclipse.wst.common.project.facet.ui.internal.FacetsSelectionPanel.handleDeletePreset(FacetsSelectionPanel.java:908)
	at org.eclipse.wst.common.project.facet.ui.internal.FacetsSelectionPanel.access$6(FacetsSelectionPanel.java:904)
	at org.eclipse.wst.common.project.facet.ui.internal.FacetsSelectionPanel$2.widgetSelected(FacetsSelectionPanel.java:225)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)