cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From coli...@apache.org
Subject cvs commit: cocoon-2.1/src/scratchpad/src/org/apache/cocoon/generation JXFormsGenerator.java
Date Mon, 30 Jun 2003 14:27:49 GMT
coliver     2003/06/30 07:27:49

  Modified:    src/scratchpad/src/org/apache/cocoon/generation
                        JXFormsGenerator.java
  Log:
  handle null locator in characters()
  
  Revision  Changes    Path
  1.19      +5 -1      cocoon-2.1/src/scratchpad/src/org/apache/cocoon/generation/JXFormsGenerator.java
  
  Index: JXFormsGenerator.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/scratchpad/src/org/apache/cocoon/generation/JXFormsGenerator.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- JXFormsGenerator.java	29 Jun 2003 15:30:21 -0000	1.18
  +++ JXFormsGenerator.java	30 Jun 2003 14:27:49 -0000	1.19
  @@ -820,7 +820,11 @@
               throws SAXException {
               if (charBuf == null) {
                   charBuf = new StringBuffer();
  -                charLocation = new LocatorImpl(locator);
  +                if (locator != null) {
  +                    charLocation = new LocatorImpl(locator);
  +                } else {
  +                    charLocation = NULL_LOCATOR;
  +                }
               }
               charBuf.append(ch, start, length);
           }
  
  
  

Mime
View raw message