costin      2003/01/13 14:08:58

  Modified:    jasper2/src/share/org/apache/jasper/compiler
                        PageDataImpl.java
  Log:
  NPE with empty files
  
  Revision  Changes    Path
  1.20      +4 -3      
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/PageDataImpl.java
  
  Index: PageDataImpl.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/PageDataImpl.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- PageDataImpl.java 5 Dec 2002 17:56:43 -0000       1.19
  +++ PageDataImpl.java 13 Jan 2003 22:08:58 -0000      1.20
  @@ -611,6 +611,7 @@
         * within the given text, so it can be included in a CDATA section.
         */
        private String escapeCDATA(String text) {
  +            if( text==null ) return "";
            int len = text.length();
            CharArrayWriter result = new CharArrayWriter(len);
            for (int i=0; i<len; i++) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to