Author: rob.stryker(a)jboss.com
Date: 2009-08-31 15:10:10 -0400 (Mon, 31 Aug 2009)
New Revision: 17385
Modified:
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java
Log:
JBIDE-4838 - simple NPE from what I can see
Modified:
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java
===================================================================
---
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java 2009-08-31
17:06:58 UTC (rev 17384)
+++
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java 2009-08-31
19:10:10 UTC (rev 17385)
@@ -151,7 +151,8 @@
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() {
Show replies by date