Author: scabanovich
Date: 2007-11-08 10:15:00 -0500 (Thu, 08 Nov 2007)
New Revision: 4790
Modified:
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/pattern/PatternLoader.java
Log:
JBIDE-1278
Modified:
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/pattern/PatternLoader.java
===================================================================
---
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/pattern/PatternLoader.java 2007-11-08
15:11:21 UTC (rev 4789)
+++
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/pattern/PatternLoader.java 2007-11-08
15:15:00 UTC (rev 4790)
@@ -43,6 +43,7 @@
}
if(servletPatterns.size() == 0) return;
XModelObject servlet = WebAppHelper.findServlet(webxml, StrutsWebHelper.ACTION_SERVLET,
"action");
+ if(servlet == null) return;
String servletName = servlet.getAttributeValue("servlet-name");
if(servletPatterns.containsKey(servletName)) {
UrlPattern up = (UrlPattern)servletPatterns.get(servletName);