From: Jeremias Maerki Date: Mon, 5 Jan 2009 07:38:43 +0000 (+0000) Subject: Avoid ArrayOutOfBoundsException when text length is 0 (this can happen if you specify... X-Git-Tag: fop-1_0~115^2~99 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=011fd36fcef0003a63e9dc8da3233fd18c7889fb;p=xmlgraphics-fop.git 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 --- 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]);