Author: scabanovich
Date: 2007-11-08 10:11:21 -0500 (Thu, 08 Nov 2007)
New Revision: 4789
Modified:
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/model/helpers/adopt/AdoptProjectContext.java
Log:
JBIDE-1278
Modified:
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/model/helpers/adopt/AdoptProjectContext.java
===================================================================
---
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/model/helpers/adopt/AdoptProjectContext.java 2007-11-08
14:37:16 UTC (rev 4788)
+++
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/model/helpers/adopt/AdoptProjectContext.java 2007-11-08
15:11:21 UTC (rev 4789)
@@ -25,6 +25,7 @@
if(webxml == null) return new String[0][];
ArrayList<String[]> l = new ArrayList<String[]>();
XModelObject servlet = WebAppHelper.findServlet(webxml, StrutsWebHelper.ACTION_SERVLET,
"action");
+ if(servlet == null) return l.toArray(new String[0][]);
XModelObject[] init = servlet.getChildren("WebAppInitParam");
for (int j = 0; j < init.length; j++) {
String name = init[j].getAttributeValue("param-name");
Show replies by date