You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2003/01/11 22:17:40 UTC

cvs commit: xml-fop/src/org/apache/fop/extensions Label.java

jeremias    2003/01/11 13:17:40

  Modified:    src/org/apache/fop/extensions Tag: fop-0_20_2-maintain
                        Label.java
  Log:
  Fixed a NullPointerException experienced by some DocBook users.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.4   +7 -3      xml-fop/src/org/apache/fop/extensions/Label.java
  
  Index: Label.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/extensions/Label.java,v
  retrieving revision 1.2.2.3
  retrieving revision 1.2.2.4
  diff -u -r1.2.2.3 -r1.2.2.4
  --- Label.java	12 Sep 2002 20:38:27 -0000	1.2.2.3
  +++ Label.java	11 Jan 2003 21:17:40 -0000	1.2.2.4
  @@ -1,6 +1,6 @@
   /*
    * $Id$
  - * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
  + * Copyright (C) 2001-2003 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources.
    */
  @@ -41,7 +41,11 @@
       }
   
       public String toString() {
  -        return textBuffer.toString();
  +        if (textBuffer != null) {
  +            return textBuffer.toString();
  +        } else {
  +            return null;
  +        }
       }
   
       public String getName() {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org