Author: scabanovich
Date: 2007-07-16 07:59:25 -0400 (Mon, 16 Jul 2007)
New Revision: 2442
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/InnerModelHelper.java
Log:
EXIN-218 - removed dependency on jsfnature - null pointer prevented when accessing dynamic
web project
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/InnerModelHelper.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/InnerModelHelper.java 2007-07-16
11:38:06 UTC (rev 2441)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/InnerModelHelper.java 2007-07-16
11:59:25 UTC (rev 2442)
@@ -21,8 +21,14 @@
XModelObject webinf = model.getByPath("FileSystems/WEB-INF");
if(webinf != null) return model;
- IPath webInfPath = J2EEUtils.getWebInfPath(project);
+ IPath webInfPath = null;
+ try {
+ webInfPath = J2EEUtils.getWebInfPath(project);
+ } catch (Exception e) {
+ //ignore
+ }
+
if(webInfPath == null) return model;
IFolder webInfFolder = ResourcesPlugin.getWorkspace().getRoot().getFolder(webInfPath);
Show replies by date