]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed a NullPointerException experienced by some DocBook users.
authorJeremias Maerki <jeremias@apache.org>
Sat, 11 Jan 2003 21:17:40 +0000 (21:17 +0000)
committerJeremias Maerki <jeremias@apache.org>
Sat, 11 Jan 2003 21:17:40 +0000 (21:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@195845 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/extensions/Label.java

index 791724e945fe5c577a272a747cc8c600d0af9801..c21f849335dfb2c4b240bf0a5c72190ec86f79d4 100644 (file)
@@ -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 class Label extends ExtensionObj {
     }
 
     public String toString() {
-        return textBuffer.toString();
+        if (textBuffer != null) {
+            return textBuffer.toString();
+        } else {
+            return null;
+        }
     }
 
     public String getName() {