Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333757 - NPE thrown when clicking 'Delete' button in the 'Project Facets' property page
Summary: NPE thrown when clicking 'Delete' button in the 'Project Facets' property page
Status: NEW
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: Faceted Project Framework (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact: Konstantin Komissarchik CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-07 10:32 EST by Remy Suen CLA
Modified: 2012-01-24 12:21 EST (History)
1 user (show)

See Also:


Attachments

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