]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Avoid ArrayOutOfBoundsException when text length is 0 (this can happen if you specify...
authorJeremias Maerki <jeremias@apache.org>
Mon, 5 Jan 2009 07:38:43 +0000 (07:38 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 5 Jan 2009 07:38:43 +0000 (07:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@731478 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/intermediate/IFRenderer.java

index 6ff96d18ea7ebf7dae6b87c1c95a09f546c2507a..abef34e227c9ad36e62058f7447b743f52ff9ecf 100644 (file)
@@ -1031,6 +1031,9 @@ public class IFRenderer extends AbstractPathOrientedRenderer {
                            int[] letterAdjust,
                            Font font, AbstractTextArea parentArea) {
         int l = s.length();
+        if (l == 0) {
+            return;
+        }
 
         if (letterAdjust != null) {
             textUtil.adjust(letterAdjust[0]);