]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
return if no areas to add
authorKeiron Liddle <keiron@apache.org>
Fri, 30 Aug 2002 07:33:59 +0000 (07:33 +0000)
committerKeiron Liddle <keiron@apache.org>
Fri, 30 Aug 2002 07:33:59 +0000 (07:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195126 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/layoutmgr/TextBPLayoutManager.java

index 0c78678302b26f0486d6e6df394a6002ef718807..9921eab506c68fc4fdb7cccc2357bab45add3869 100644 (file)
@@ -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();