From: Keiron Liddle Date: Fri, 30 Aug 2002 07:33:59 +0000 (+0000) Subject: return if no areas to add X-Git-Tag: Alt-Design-integration-base~428 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5f7e2cdf167f6e1217ebc0ef2d6f3616e6aa8056;p=xmlgraphics-fop.git return if no areas to add git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195126 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/layoutmgr/TextBPLayoutManager.java b/src/org/apache/fop/layoutmgr/TextBPLayoutManager.java index 0c7867830..9921eab50 100644 --- a/src/org/apache/fop/layoutmgr/TextBPLayoutManager.java +++ b/src/org/apache/fop/layoutmgr/TextBPLayoutManager.java @@ -442,6 +442,9 @@ public class TextBPLayoutManager extends AbstractBPLayoutManager { } iWScount += ai.m_iWScount; } + if(ai == null) { + return; + } // Calculate total adjustment int iAdjust = 0; double dSpaceAdjust = context.getSpaceAdjust();