remm 02/04/03 23:03:54 Modified: jasper2/src/share/org/apache/jasper/compiler Node.java Log: - Fix NPE caused by JSP attributes field not being populated. Revision Changes Path 1.2 +8 -3 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Node.java Index: Node.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Node.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Node.java 28 Mar 2002 18:46:16 -0000 1.1 +++ Node.java 4 Apr 2002 07:03:54 -0000 1.2 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Node.java,v 1.1 2002/03/28 18:46:16 kinman Exp $ - * $Revision: 1.1 $ - * $Date: 2002/03/28 18:46:16 $ + * $Header: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Node.java,v 1.2 2002/04/04 07:03:54 remm Exp $ + * $Revision: 1.2 $ + * $Date: 2002/04/04 07:03:54 $ * * ==================================================================== * @@ -663,6 +663,11 @@ this.name = name; this.prefix = prefix; this.shortName = shortName; + jspAttrs = new JspAttribute[attrs.getLength()]; + for (int i = 0; i < attrs.getLength(); i++) { + jspAttrs[i] = new JspAttribute + (attrs.getLocalName(i), attrs.getValue(i), false); + } } public void accept(Visitor v) throws JasperException {
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>