Author: dgolovin
Date: 2007-08-24 01:49:44 -0400 (Fri, 24 Aug 2007)
New Revision: 3313
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/WtpUtils.java
Log:
Fix null pointer exception
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/WtpUtils.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/WtpUtils.java 2007-08-24
05:25:39 UTC (rev 3312)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/WtpUtils.java 2007-08-24
05:49:44 UTC (rev 3313)
@@ -106,7 +106,9 @@
try {
IFacetedProject facetedProject = ProjectFacetsManager.create(project);
IRuntime rt = facetedProject.getPrimaryRuntime();
- return facetedProject.getPrimaryRuntime().getName();
+ if(facetedProject.getPrimaryRuntime()!=null) {
+ return facetedProject.getPrimaryRuntime().getName();
+ }
} catch (CoreException e) {
SeamCorePlugin.getPluginLog().logError(e);
}
Show replies by date