Author: akazakov
Date: 2009-04-10 08:39:17 -0400 (Fri, 10 Apr 2009)
New Revision: 14677
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4159 Fixed NPE
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java 2009-04-10
12:12:32 UTC (rev 14676)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java 2009-04-10
12:39:17 UTC (rev 14677)
@@ -144,7 +144,9 @@
getFacetedProjectWorkingCopy().addListener(new IFacetedProjectListener() {
public void handleEvent(IFacetedProjectEvent event) {
IPreset preset = getFacetedProjectWorkingCopy().getSelectedPreset();
- setSeamConfigTemplate(templates.get(preset.getId()));
+ if(preset!=null) {
+ setSeamConfigTemplate(templates.get(preset.getId()));
+ }
}
}, IFacetedProjectEvent.Type.SELECTED_PRESET_CHANGED);
getFacetedProjectWorkingCopy().addListener(new IFacetedProjectListener() {