Author: akazakov
Date: 2008-06-30 08:33:45 -0400 (Mon, 30 Jun 2008)
New Revision: 9012
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
Log:
fix null pointer error during disabling seam for projects without installed wtp jsf facet
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2008-06-30
10:42:49 UTC (rev 9011)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2008-06-30
12:33:45 UTC (rev 9012)
@@ -115,7 +115,7 @@
addToBuildSpec(SeamCoreBuilder.BUILDER_ID);
DesignTimeApplicationManager dtAppManager =
DesignTimeApplicationManager.getInstance(project);
if(dtAppManager!=null)
- DesignTimeApplicationManager.getInstance(project).setVariableResolverProvider(VariableResolver.ID);
+ dtAppManager.setVariableResolverProvider(VariableResolver.ID);
}
/**
@@ -123,7 +123,10 @@
*/
public void deconfigure() throws CoreException {
removeFromBuildSpec(SeamCoreBuilder.BUILDER_ID);
- DesignTimeApplicationManager.getInstance(project).setVariableResolverProvider(null);
+ DesignTimeApplicationManager dtAppManager =
DesignTimeApplicationManager.getInstance(project);
+ if(dtAppManager!=null) {
+ dtAppManager.setVariableResolverProvider(null);
+ }
}
/**
Show replies by date