Author: snjeza
Date: 2008-10-06 13:13:47 -0400 (Mon, 06 Oct 2008)
New Revision: 10696
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/module/JBossESBModule.java
Log:
JBIDE-2859 NPE when deleting an ESB project
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/module/JBossESBModule.java
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/module/JBossESBModule.java 2008-10-06
15:44:23 UTC (rev 10695)
+++
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/module/JBossESBModule.java 2008-10-06
17:13:47 UTC (rev 10696)
@@ -41,6 +41,9 @@
IFacetedProject facetPrj;
try {
facetPrj = ProjectFacetsManager.create(project);
+ if (facetPrj == null) {
+ return null;
+ }
final IProjectFacet esbfacet =
ProjectFacetsManager.getProjectFacet(ESBProjectUtilities.ESB_PROJECT_FACET);
final IProjectFacetVersion fv = facetPrj.getInstalledVersion(esbfacet);
return ModuleType.getModuleType(esbfacet.getId(), fv.getVersionString());
Show replies by date