From 011fd36fcef0003a63e9dc8da3233fd18c7889fb Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Mon, 5 Jan 2009 07:38:43 +0000 Subject: [PATCH] Avoid ArrayOutOfBoundsException when text length is 0 (this can happen if you specify a soft hyphen as only content of a block, for example). 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/java/org/apache/fop/render/intermediate/IFRenderer.java b/src/java/org/apache/fop/render/intermediate/IFRenderer.java index 6ff96d18e..abef34e22 100644 --- a/src/java/org/apache/fop/render/intermediate/IFRenderer.java +++ b/src/java/org/apache/fop/render/intermediate/IFRenderer.java @@ -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]); -- 2.39.5