From: Luis Bernardo Date: Sat, 16 Mar 2013 00:39:09 +0000 (+0000) Subject: FOP-2224: NPE for SVG text in AFP; patch submitted by Simon Steiner X-Git-Tag: fop-2_0~218 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ec3a8a819dba4ddc61c040e649d9ec41b5c65c97;p=xmlgraphics-fop.git FOP-2224: NPE for SVG text in AFP; patch submitted by Simon Steiner git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1457183 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/svg/AbstractFOPTextPainter.java b/src/java/org/apache/fop/svg/AbstractFOPTextPainter.java index c41271caa..3e16799f4 100644 --- a/src/java/org/apache/fop/svg/AbstractFOPTextPainter.java +++ b/src/java/org/apache/fop/svg/AbstractFOPTextPainter.java @@ -305,6 +305,7 @@ public abstract class AbstractFOPTextPainter implements TextPainter { for (char c = aci.first(); c != CharacterIterator.DONE; c = aci.next()) { sb.append(c); } + aci.first(); return sb.toString(); }